Commit Diff


commit - e0c9931ad8db8a9bd7d6c030d856ccc28c6facc2
commit + 1537c791320086df83b8fbecb057e70c7120ea12
blob - 0a8ae2414f17145c2c8a67bf4a3949fd68cd8a66
blob + 0f617b8213d1ff3fe56a5cbf9babf58265080df9
--- src/ngircd/class.c
+++ src/ngircd/class.c
@@ -112,7 +112,8 @@ Class_AddMask(const int Class, const char *Mask, time_
 	assert(Mask != NULL);
 	assert(Reason != NULL);
 
-	return Lists_Add(&My_Classes[Class], Mask, ValidUntil, Reason);
+	return Lists_Add(&My_Classes[Class], Lists_MakeMask(Mask),
+			 ValidUntil, Reason);
 }
 
 GLOBAL void
@@ -121,7 +122,7 @@ Class_DeleteMask(const int Class, const char *Mask)
 	assert(Class < CLASS_COUNT);
 	assert(Mask != NULL);
 
-	Lists_Del(&My_Classes[Class], Mask);
+	Lists_Del(&My_Classes[Class], Lists_MakeMask(Mask));
 }
 
 GLOBAL struct list_head *