diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-09 16:35:24 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-08-09 16:35:24 +0000 |
commit | 1cbf29e3cd070c12437a657b47fc433008b2c74d (patch) | |
tree | 22b7a435ffd8bfa7dd97f2457b73df564753eddc /src/modules/m_tline.cpp | |
parent | 89749a74402913d50bd5a9140757a383d6ff175e (diff) |
Move clientlist and chanlist into InspIRCd*
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@4818 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_tline.cpp')
-rw-r--r-- | src/modules/m_tline.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/modules/m_tline.cpp b/src/modules/m_tline.cpp index 6ee4d9176..47f82200e 100644 --- a/src/modules/m_tline.cpp +++ b/src/modules/m_tline.cpp @@ -22,12 +22,13 @@ using namespace std; #include "modules.h" #include "helperfuncs.h" #include "wildcard.h" +#include "inspircd.h" #include "dns.h" /* $ModDesc: Provides /tline command used to test who a mask matches */ static Server *Srv; -extern user_hash clientlist; +extern InspIRCd* ServerInstance; class cmd_tline : public command_t { @@ -45,7 +46,7 @@ class cmd_tline : public command_t float n_match_host = 0; float n_match_ip = 0; - for (user_hash::const_iterator u = clientlist.begin(); u != clientlist.end(); u++) + for (user_hash::const_iterator u = ServerInstance->clientlist.begin(); u != ServerInstance->clientlist.end(); u++) { n_counted++; if (match(u->second->GetFullRealHost(),parameters[0])) |