Module: ngircd.git Branch: master Commit: 1537c791320086df83b8fbecb057e70c7120ea12 URL: http://ngircd.barton.de/cgi-bin/gitweb.cgi?p=ngircd.git&a=commit;h=1537c...
Author: Alexander Barton alex@barton.de Date: Sun Jan 22 18:53:16 2012 +0100
G/K-Lines: only add and delete valid IRC masks
---
src/ngircd/class.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/ngircd/class.c b/src/ngircd/class.c index 0a8ae24..0f617b8 100644 --- a/src/ngircd/class.c +++ b/src/ngircd/class.c @@ -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 *
ngircd-commits@lists.barton.de