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
1 changed files with 3 additions and 2 deletions

View File

@ -112,7 +112,8 @@ Class_AddMask(const int Class, const char *Mask, time_t ValidUntil,
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 *