[IRCServices] small akill bug

CJB cjb at mircx.com
Sat Dec 1 18:01:00 PST 2001


I just wanted to follow up, it appears as though this fix (as implemented
in 4.5.34) has corrected the "AKILL on * has expired" bug I reported
earlier.

Chris

On Sat, 1 Dec 2001, Lloyd Williams wrote:

> cancel_akill() modifies the string that is passed to it, if 
> WallAkillExpire is enabled, the printed string contains only the 
> username part of the mask
> 
> a simple fix:
> 
> --- ircservices-4.5.33-orig/akill.c	Fri Nov 23 11:10:35 2001
> +++ ircservices-4.5.33-fixed/akill.c	Sat Dec  1 13:54:29 2001
> @@ -274,9 +274,10 @@
>    
> /*************************************************************************/
>   -static void cancel_akill(char *mask)
> +static void cancel_akill(char *mask_)
>   {
>   #if defined(IRC_UNREAL) || defined(IRC_DALNET)
> +    char *mask = strdup(mask_);
>       char *s = strchr(mask, '@');
>       if (s) {
>   	*s++ = 0;
> @@ -287,6 +288,7 @@
>   	send_cmd(ServerName, "RAKILL %s %s", s, mask);
>   # endif
>       }
> +    free(mask);
>   #endif
>   }
> 
> -----------------------------------------------------------
> To unsubscribe, mail ircservices-request at ircservices.za.net
> with the word UNSUBSCRIBE in the subject of the mail.
> http://www.ircservices.za.net/mailman/listinfo/ircservices
>