From 6d94d84683bd0e916e5ce0a3c7fedbc524d653b0 Mon Sep 17 00:00:00 2001 From: brain Date: Mon, 6 Feb 2006 12:21:51 +0000 Subject: 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 --- src/cmd_who.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') 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; -- cgit v1.2.3