From 67822c67e91e70917ddbdec0bd8453c7170ee06d Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sat, 18 May 2013 16:03:17 +0200 Subject: Initialize local_count --- src/inspircd.cpp | 2 -- src/usermanager.cpp | 5 +++++ 2 files changed, 5 insertions(+), 2 deletions(-) (limited to 'src') 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) { -- cgit v1.2.3