[IRCServices] Little remote WHOIS formal bug

Andrew Church achurch at achurch.org
Mon Nov 19 22:28:00 PST 2001


>I've just found this reply via whois from services:
>:services.abc.xyz 311 janos operserv services services.abc.xyz :Operator
>Server
>>From server:
>:irc.abc.xyz 311 janos OperServ services services.abc.xyz * :Operator Server
>So the * is missing from the source.

     This is already fixed for version 5.0.

>And the last line is also buggy in void m_whois, it should be:
>        'send_cmd(ServerName, "318 %s %s End of /WHOIS response.", source,
>av[0])'
>
>For extra another line should be added (oper numeric) and it should be:
>        'send_cmd(ServerName, "313 %s %s :is a Network Service", source,
>av[0])' (or "an IRC Operator")  - but this is only optional , and it should
>be for clients/scripts to detect services as a "super-user". (Scripts and
>clients only watch the numeric in the most cases)

     These will be added for version 5.0.  I may backport the fix to 4.5
once 5.0 has been finished.

>"/whois services.abc.xyz notexistantuser" is also affected:
>    'send_cmd(ServerName, "401 %s %s :No such service.", source, av[0]);'
>Sometimes it breaks some client, it should be two lines:
>    'send_cmd(ServerName, "401 %s %s :No such nick/channel.", source,
>av[0]);'
>    'send_cmd(ServerName, "318 End of /WHOIS response.");'
>But the last bug can be found rarely.

     I'd consider this a client bug.

  --Andrew Church
    achurch at achurch.org
    http://achurch.org/