From 1cbf29e3cd070c12437a657b47fc433008b2c74d Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 9 Aug 2006 16:35:24 +0000 Subject: Move clientlist and chanlist into InspIRCd* git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4818 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_check.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/modules/m_check.cpp') diff --git a/src/modules/m_check.cpp b/src/modules/m_check.cpp index 92b6d64f0..f697c4670 100644 --- a/src/modules/m_check.cpp +++ b/src/modules/m_check.cpp @@ -23,11 +23,11 @@ using namespace std; #include "commands.h" #include "inspircd.h" #include "helperfuncs.h" +#include "wildcard.h" /* $ModDesc: Provides the /check command to retrieve information on a user, channel, or IP address */ -extern user_hash clientlist; -extern bool match(const char *, const char *); +extern InspIRCd* ServerInstance; static Server *Srv; @@ -161,7 +161,7 @@ class cmd_check : public command_t long x = 0; /* hostname or other */ - for (user_hash::const_iterator a = clientlist.begin(); a != clientlist.end(); a++) + for (user_hash::const_iterator a = ServerInstance->clientlist.begin(); a != ServerInstance->clientlist.end(); a++) { if (match(a->second->host, parameters[0]) || match(a->second->dhost, parameters[0])) { -- cgit v1.3.1-10-gc9f91