[IRCServices] Greetings

Andrew Church achurch at achurch.org
Fri Jan 19 09:38:36 PST 2001


>On Fri, 19 Jan 2001 08:59:03 JST, achurch at achurch.org (Andrew Church) wrote:
>
>>>	It seems that all functions like access_del_callback,
>>>akick_del_callback etc have a problem. That is , executing a /msg memoserv
>>>del 1-99999999999999999999999999 services are delaying for a long period
>>>of time. This behaviour will cause the server that are connected to send
>>>an squit if there is general activity at the network. If there is no
>>>activity and you are running for example a test server at home, you will
>>>regain control at the services after a period of time. The same command
>>>could apply at chanserv with /msg chanserv access #channel del
>>>1-99999999999999etcetc or at the akick function.
>>
>>     Fixed for 4.5, thanks for the report.
>
>Is there any possibility of seeing a quick fix for this now?  Anyone can
>disconnect services with this and I'd rather not wait for 4.5 to be
>released...

     The following patch (untested) should do the trick for now.

--- misc.c.old	Sat Jan 29 14:17:51 2000
+++ misc.c	Fri Jan 19 09:40:32 2001
@@ -246,6 +246,10 @@
 		numstr += strcspn(numstr, "0123456789,-");
 	    }
 	}
+	if (n1 < 0)
+	    n1 = 0;
+	if (n2 > 1024)
+	    n2 = 1024;
 	for (i = n1; i <= n2 && i >= 0; i++) {
 	    int res = callback(u, i, args);
 	    count++;


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