Fix the other logic bug found by peavey

git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6924 e03df62e-2008-0410-955e-edbf42e46eb7
This commit is contained in:
brain 2007-05-09 20:36:10 +00:00
parent 0c19615624
commit 02c0611d36

View File

@ -243,7 +243,7 @@ CmdResult cmd_who::Handle (const char** parameters, int pcnt, userrec *user)
} }
} }
/* Send the results out */ /* 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++) for (std::vector<std::string>::const_iterator n = whoresults.begin(); n != whoresults.end(); n++)
user->WriteServ(*n); user->WriteServ(*n);