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.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'src/modules.cpp') diff --git a/src/modules.cpp b/src/modules.cpp index 4eed4d781..1c90bd7c0 100644 --- a/src/modules.cpp +++ b/src/modules.cpp @@ -51,8 +51,6 @@ extern ModuleList modules; extern FactoryList factory; extern std::vector local_users; extern time_t TIME; -extern user_hash clientlist; -extern chan_hash chanlist; extern command_table cmdlist; class Server; @@ -356,7 +354,7 @@ void Server::DelSocket(InspSocket* sock) long Server::GetChannelCount() { - return (long)chanlist.size(); + return (long)ServerInstance->chanlist.size(); } /* This is ugly, yes, but hash_map's arent designed to be @@ -369,7 +367,7 @@ long Server::GetChannelCount() chanrec* Server::GetChannelIndex(long index) { int target = 0; - for (chan_hash::iterator n = chanlist.begin(); n != chanlist.end(); n++, target++) + for (chan_hash::iterator n = ServerInstance->chanlist.begin(); n != ServerInstance->chanlist.end(); n++, target++) { if (index == target) return n->second; -- cgit v1.2.3