1
0
mirror of https://github.com/osmarks/ngircd.git synced 2024-12-12 09:50:29 +00:00

G/K-Lines: only add and delete valid IRC masks

This commit is contained in:
Alexander Barton 2012-01-22 18:53:16 +01:00
parent e0c9931ad8
commit 1537c79132

View File

@ -112,7 +112,8 @@ Class_AddMask(const int Class, const char *Mask, time_t ValidUntil,
assert(Mask != NULL); assert(Mask != NULL);
assert(Reason != 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 GLOBAL void
@ -121,7 +122,7 @@ Class_DeleteMask(const int Class, const char *Mask)
assert(Class < CLASS_COUNT); assert(Class < CLASS_COUNT);
assert(Mask != NULL); assert(Mask != NULL);
Lists_Del(&My_Classes[Class], Mask); Lists_Del(&My_Classes[Class], Lists_MakeMask(Mask));
} }
GLOBAL struct list_head * GLOBAL struct list_head *