From bd8175272f71eaa298262de7f6c140035273b263 Mon Sep 17 00:00:00 2001 From: brain Date: Wed, 14 Dec 2005 18:32:06 +0000 Subject: Moving module_sockets into main class git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2441 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/inspircd.cpp | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'src/inspircd.cpp') diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 4b4b3bfbe..64f12affe 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -70,8 +70,6 @@ int WHOWAS_MAX = 100; // default 100 people maximum in the WHOWAS list extern std::vector modules; extern std::vector factory; -std::vector module_sockets; - extern int MODCOUNT; int openSockfd[MAXSOCKS]; sockaddr_in client,server; @@ -96,7 +94,6 @@ user_hash clientlist; chan_hash chanlist; whowas_hash whowas; command_table cmdlist; -address_cache IP; servernamelist servernames; int BoundPortCount = 0; std::vector all_opers; @@ -1613,12 +1610,12 @@ int InspIRCd::Run() { log(DEBUG,"Socket poll returned false, close and bail"); SE->DelFd(s->GetFd()); - for (std::vector::iterator a = module_sockets.begin(); a < module_sockets.end(); a++) + for (std::vector::iterator a = this->module_sockets.begin(); a < this->module_sockets.end(); a++) { s_del = (InspSocket*)*a; if ((s_del) && (s_del->GetFd() == activefds[activefd])) { - module_sockets.erase(a); + this->module_sockets.erase(a); break; } } -- cgit v1.3.1-10-gc9f91