summaryrefslogtreecommitdiff
path: root/src/modules.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/modules.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/modules.cpp')
-rw-r--r--src/modules.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules.cpp b/src/modules.cpp
index 881be766b..e2c131780 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -56,7 +56,7 @@ extern InspIRCd* ServerInstance;
extern int MODCOUNT;
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;
class Server;
@@ -312,7 +312,7 @@ Server::~Server()
void Server::AddSocket(InspSocket* sock)
{
- ServerInstance->module_sockets.push_back(sock);
+ module_sockets.push_back(sock);
}
void Server::RehashServer()
@@ -328,11 +328,11 @@ ServerConfig* Server::GetConfig()
void Server::DelSocket(InspSocket* sock)
{
- for (std::vector<InspSocket*>::iterator a = ServerInstance->module_sockets.begin(); a < ServerInstance->module_sockets.end(); a++)
+ for (std::vector<InspSocket*>::iterator a = module_sockets.begin(); a < module_sockets.end(); a++)
{
if (*a == sock)
{
- ServerInstance->module_sockets.erase(a);
+ module_sockets.erase(a);
return;
}
}