summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-09 20:36:10 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-05-09 20:36:10 +0000
commit02c0611d3621fef5e8adb57f6bdb4f4ed6b22f25 (patch)
tree7f271bff064c2189aace4219bea31fb588fbafbb /src
parent0c196156243c1e0185ca1c314ceaf64215d9ebd3 (diff)
Fix the other logic bug found by peavey
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6924 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src')
-rw-r--r--src/cmd_who.cpp2
1 files changed, 1 insertions, 1 deletions
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<std::string>::const_iterator n = whoresults.begin(); n != whoresults.end(); n++)
user->WriteServ(*n);