#include "wildcard.h"
#include "commands/cmd_who.h"
-extern ServerConfig* Config;
-extern user_hash clientlist;
+extern InspIRCd* ServerInstance;
extern chan_hash chanlist;
extern std::vector<userrec*> all_opers;
}
else
{
- for (user_hash::iterator i = clientlist.begin(); i != clientlist.end(); i++)
+ for (user_hash::iterator i = ServerInstance->clientlist.begin(); i != ServerInstance->clientlist.end(); i++)
{
if (whomatch(i->second, matchtext, opt_realname, opt_showrealhost))
{
}
}
/* Send the results out */
- if ((whoresults.size() < (size_t)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);