From: brain Date: Mon, 6 Feb 2006 12:21:51 +0000 (+0000) Subject: Pedantic tweak to /WHO (this actually needs rewriting at some point -- its a mess) X-Git-Tag: v2.0.23~8981 X-Git-Url: https://git.netwichtig.de/gitweb/?a=commitdiff_plain;h=6d94d84683bd0e916e5ce0a3c7fedbc524d653b0;p=user%2Fhenk%2Fcode%2Finspircd.git Pedantic tweak to /WHO (this actually needs rewriting at some point -- its a mess) git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@3106 e03df62e-2008-0410-955e-edbf42e46eb7 --- diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp index 843507b57..8292c0167 100644 --- a/src/cmd_who.cpp +++ b/src/cmd_who.cpp @@ -90,8 +90,7 @@ void cmd_who::Handle (char **parameters, int pcnt, userrec *user) } if (strchr(i->second->modes,'o')) { strlcat(tmp, "*", 9); } WriteServ(user->fd,"352 %s %s %s %s %s %s %s :0 %s",user->nick, Ptr ? Ptr->name : "*", i->second->ident, i->second->dhost, i->second->server, i->second->nick, tmp, i->second->fullname); - n_list++; - if (n_list > Config->MaxWhoResults) + if (n_list++ > Config->MaxWhoResults) { WriteServ(user->fd,"523 %s WHO :Command aborted: More results than configured limit",user->nick); break;