diff options
author | attilamolnar <attilamolnar@hush.com> | 2013-05-18 16:03:17 +0200 |
---|---|---|
committer | attilamolnar <attilamolnar@hush.com> | 2013-05-18 16:03:17 +0200 |
commit | 67822c67e91e70917ddbdec0bd8453c7170ee06d (patch) | |
tree | 4d72b5dcb6cf691313960d723638832e5e49401d /src | |
parent | 3f782d5cad84165d695203977c75d2a3877f4644 (diff) |
Initialize local_count
Diffstat (limited to 'src')
-rw-r--r-- | src/inspircd.cpp | 2 | ||||
-rw-r--r-- | src/usermanager.cpp | 5 |
2 files changed, 5 insertions, 2 deletions
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) { |