[IRCServices] services operator bug (4.5pre5)

Curtis D curtis at nucleus.com
Sun Feb 4 19:14:20 PST 2001


Thanks Poison-X !!! THATS A some GREAT bugtraqing !!

----- Original Message ----- 
From: "Josh" <grenday288 at geocities.com>
To: <ircservices at ircservices.za.net>
Sent: Sunday, February 11, 2001 12:24 PM
Subject: [IRCServices] services operator bug (4.5pre5)


> services operators cant be added because there is no code in 
> privlist_add to add serivces_opers...  it always adds them as 
> services_admins
> 
> 
> 
> --- ../ircservices-4.5pre5/operserv.c   Thu Feb  8 19:06:30 2001
> +++ operserv.c  Sun Feb 11 13:16:30 2001
> @@ -590,7 +590,11 @@ static void privlist_add(User *u, int li
>      if (list[i] == ni) {
>         notice_lang(s_OperServ, u, msgs[MSG_EXISTS], ni->nick);
>      } else if (i < max) {
> -       services_admins[i] = ni;
> +     if (!listid) {
> +       services_admins[i] = ni;
> +     } else {
> +       services_opers[i] = ni;
> +     }
>         notice_lang(s_OperServ, u, msgs[MSG_ADDED], ni->nick);
>         if (readonly)
>             notice_lang(s_OperServ, u, READ_ONLY_MODE);
> 
> 
> (might not be the greatest code.. but it works) 
> 
> -----------------------------------------------------------
> 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
>