summaryrefslogtreecommitdiff
path: root/src/userprocess.cpp
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 19:01:38 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-12-14 19:01:38 +0000
commitb5bb8ac18421a29ee98ca61919959b0221feecd0 (patch)
treec8047375a236a6c06eae88d17abad83403fc3354 /src/userprocess.cpp
parent5d5a633184b3cdcce2b95db5f988ba9f10135799 (diff)
Sucky stuff
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@2449 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/userprocess.cpp')
-rw-r--r--src/userprocess.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index 3fb3805ef..d2a3d4e5f 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -64,7 +64,7 @@ extern struct sockaddr_in client,server;
extern socklen_t length;
extern std::vector<Module*> modules;
extern std::vector<ircd_module*> factory;
-std::vector<InspSocket*> module_sockets;
+extern std::vector<InspSocket*> module_sockets;
extern time_t TIME;
extern time_t OLDTIME;
@@ -248,8 +248,8 @@ void ProcessUser(userrec* cu)
*/
bool DoBackgroundUserStuff(time_t TIME)
{
- unsigned int numsockets = ServerInstance->module_sockets.size();
- for (std::vector<InspSocket*>::iterator a = ServerInstance->module_sockets.begin(); a < ServerInstance->module_sockets.end(); a++)
+ unsigned int numsockets = module_sockets.size();
+ for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++)
{
InspSocket* s = (InspSocket*)*a;
if (s->Timeout(TIME))
@@ -257,11 +257,11 @@ bool DoBackgroundUserStuff(time_t TIME)
log(DEBUG,"Socket poll returned false, close and bail");
SE->DelFd(s->GetFd());
s->Close();
- ServerInstance->module_sockets.erase(a);
+ module_sockets.erase(a);
delete s;
break;
}
- if (ServerInstance->module_sockets.size() != numsockets) break;
+ if (module_sockets.size() != numsockets) break;
}
/* TODO: We need a seperate hash containing only local users for this
*/