# arch-tag: automatic-ChangeLog--srvx@srvx.net--2004-srvx/srvx--devo--1.3
#
+2004-11-23 04:09:30 GMT Zoot <zoot@gamesurge.net> patch-84
+
+ Summary:
+ Fix ban reader
+ Revision:
+ srvx--devo--1.3--patch-84
+
+ * src/chanserv.c: Drop invalid bans with no reason during database reads
+ and require bans to have a reason set in add_channel_ban().
+
+ modified files:
+ ChangeLog src/chanserv.c
+
+
2004-11-10 01:25:53 GMT Michael Poole <mdpoole@troilus.org> patch-83
Summary:
safestrncpy(bd->mask, mask, sizeof(bd->mask));
if(owner)
safestrncpy(bd->owner, owner, sizeof(bd->owner));
- bd->reason = reason ? strdup(reason) : NULL;
+ bd->reason = strdup(reason);
if(expires)
timeq_add(expires, expire_ban, bd);
else
expires_time = 0;
- if(expires_time && (expires_time < now))
+ if(!reason || (expires_time && (expires_time < now)))
return;
bData = add_channel_ban(chan, key, owner, set_time, triggered_time, expires_time, reason);