summaryrefslogtreecommitdiff
path: root/src/cmd_who.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-06 12:21:51 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2006-02-06 12:21:51 +0000
commit6d94d84683bd0e916e5ce0a3c7fedbc524d653b0 (patch)
treef03bc4e93942bbef5d70d049dc2dcb2565baa4f5 /src/cmd_who.cpp
parent52dc00fff008ccf103ab4d4ee76dbfb4225d30b6 (diff)
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
Diffstat (limited to 'src/cmd_who.cpp')
-rw-r--r--src/cmd_who.cpp3
1 files changed, 1 insertions, 2 deletions
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;