summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/usermanager.h2
-rw-r--r--src/inspircd.cpp2
-rw-r--r--src/usermanager.cpp5
3 files changed, 7 insertions, 2 deletions
diff --git a/include/usermanager.h b/include/usermanager.h
index 743db508a..ac8ae1cb3 100644
--- a/include/usermanager.h
+++ b/include/usermanager.h
@@ -32,6 +32,8 @@ class CoreExport UserManager
*/
clonemap local_clones;
public:
+ UserManager();
+
~UserManager()
{
for (user_hash::iterator i = clientlist->begin();i != clientlist->end();i++)
diff --git a/src/inspircd.cpp b/src/inspircd.cpp
index 344e2a473..4def50c87 100644
--- a/src/inspircd.cpp
+++ b/src/inspircd.cpp
@@ -375,8 +375,6 @@ InspIRCd::InspIRCd(int argc, char** argv) :
// Create base manager classes early, so nothing breaks
this->Users = new UserManager;
- this->Users->unregistered_count = 0;
-
this->Users->clientlist = new user_hash();
this->Users->uuidlist = new user_hash();
this->chanlist = new chan_hash();
diff --git a/src/usermanager.cpp b/src/usermanager.cpp
index 670add777..076277a33 100644
--- a/src/usermanager.cpp
+++ b/src/usermanager.cpp
@@ -24,6 +24,11 @@
#include "xline.h"
#include "bancache.h"
+UserManager::UserManager()
+ : unregistered_count(0), local_count(0)
+{
+}
+
/* add a client connection to the sockets list */
void UserManager::AddUser(int socket, ListenSocket* via, irc::sockets::sockaddrs* client, irc::sockets::sockaddrs* server)
{