summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/inspircd.cpp2
-rw-r--r--src/modules.cpp1
-rw-r--r--src/userprocess.cpp1
3 files changed, 4 insertions, 0 deletions
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 64f12affe..1a262ac72 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -69,6 +69,7 @@ int WHOWAS_MAX = 100; // default 100 people maximum in the WHOWAS list
extern std::vector<Module*> modules;
extern std::vector<ircd_module*> factory;
+std::vector<InspSocket*> module_sockets;
extern int MODCOUNT;
int openSockfd[MAXSOCKS];
@@ -427,6 +428,7 @@ void kill_link_silent(userrec *user,const char* r)
InspIRCd::InspIRCd(int argc, char** argv)
{
Start();
+ module_sockets.clear();
this->startup_time = time(NULL);
srand(time(NULL));
log(DEBUG,"*** InspIRCd starting up!");
diff --git a/src/modules.cpp b/src/modules.cpp
index 668c7ec1b..881be766b 100644
--- a/src/modules.cpp
+++ b/src/modules.cpp
@@ -56,6 +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 time_t TIME;
class Server;
diff --git a/src/userprocess.cpp b/src/userprocess.cpp
index c156a99fe..3fb3805ef 100644
--- a/src/userprocess.cpp
+++ b/src/userprocess.cpp
@@ -64,6 +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 time_t TIME;
extern time_t OLDTIME;