From 02c0611d3621fef5e8adb57f6bdb4f4ed6b22f25 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 9 May 2007 20:36:10 +0000 Subject: Fix the other logic bug found by peavey git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6924 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/cmd_who.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cmd_who.cpp b/src/cmd_who.cpp index d246a72f1..914d46cef 100644 --- a/src/cmd_who.cpp +++ b/src/cmd_who.cpp @@ -243,7 +243,7 @@ CmdResult cmd_who::Handle (const char** parameters, int pcnt, userrec *user) } } /* Send the results out */ - if ((whoresults.size() < (size_t)ServerInstance->Config->MaxWhoResults) && (!opt_unlimit)) + if ((whoresults.size() <= (size_t)ServerInstance->Config->MaxWhoResults) || opt_unlimit) { for (std::vector::const_iterator n = whoresults.begin(); n != whoresults.end(); n++) user->WriteServ(*n); -- cgit v1.2.3