[IRCServices] [NOTICE] 4.5.3 bug

Andrew Church achurch at achurch.org
Mon Feb 26 06:23:01 PST 2001


     4.5.3 has a bug which will cause crashes the first time ChanServ
tries to enforce a +l mode lock.  DO NOT USE the 4.5.3 released earlier;
if you have already downloaded it, please apply the patch included below.
A fixed version has been uploaded to ftp.esper.net.

  --Andrew Church
    achurch at achurch.org | New address - please note.
    http://achurch.org/ | $B%a!<%k%"%I%l%9$,JQ$o$j$^$7$?!#(B

Index: chanserv.c
===================================================================
RCS file: /disk1/cvs-private/ircservices/chanserv.c,v
retrieving revision 1.65
retrieving revision 1.66
diff -u -r1.65 -r1.66
--- chanserv.c	2001/02/24 00:25:58	1.65
+++ chanserv.c	2001/02/26 04:10:02	1.66
@@ -532,7 +532,9 @@
 	return;
     *end = 0;
     if (set_limit) {
-	send_cmode(MODE_SENDER(s_ChanServ), c->name, newmodes, newlimit,
+	char newlimit_str[32];
+	snprintf(newlimit_str, sizeof(newlimit_str), "%d", newlimit);
+	send_cmode(MODE_SENDER(s_ChanServ), c->name, newmodes, newlimit_str,
 		   newkey ? newkey : "");
     } else {
 	send_cmode(MODE_SENDER(s_ChanServ), c->name, newmodes,