X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Finspircd.cpp;h=469539c5b3b525aaab2a8143f1868f293c13b0d7;hb=7492344e64491cea6bbb5c9354dceb804bb908ac;hp=553e09b73f189a944719336ad2f6fe4c7e907390;hpb=a3d2b4475708520207d95d66a6ecd5a35e176ab9;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/inspircd.cpp b/src/inspircd.cpp index 553e09b73..469539c5b 100644 --- a/src/inspircd.cpp +++ b/src/inspircd.cpp @@ -109,8 +109,8 @@ void InspIRCd::Cleanup() ports.clear(); /* Close all client sockets, or the new process inherits them */ - LocalUserList& list = Users->local_users; - for (LocalUserList::iterator i = list.begin(); i != list.end(); ++i) + const UserManager::LocalList& list = Users.GetLocalUsers(); + for (UserManager::LocalList::const_iterator i = list.begin(); i != list.end(); ++i) Users->QuitUser(*i, "Server shutdown"); GlobalCulls.Apply(); @@ -124,9 +124,7 @@ void InspIRCd::Cleanup() FakeClient->cull(); } DeleteZero(this->FakeClient); - DeleteZero(this->Users); DeleteZero(this->XLines); - DeleteZero(this->SNO); DeleteZero(this->Config); SocketEngine::Deinit(); Logs->CloseLogs(); @@ -231,7 +229,7 @@ InspIRCd::InspIRCd(int argc, char** argv) : * THIS MUST MATCH THE ORDER OF DECLARATION OF THE FUNCTORS, e.g. the methods * themselves within the class. */ - OperQuit("operquit", NULL), + OperQuit("operquit", ExtensionItem::EXT_USER, NULL), GenRandom(&HandleGenRandom), IsChannel(&HandleIsChannel), IsNick(&HandleIsNick), @@ -248,9 +246,7 @@ InspIRCd::InspIRCd(int argc, char** argv) : do_nolog = 0, do_root = 0; // Initialize so that if we exit before proper initialization they're not deleted - this->Users = 0; this->Config = 0; - this->SNO = 0; this->XLines = 0; this->ConfigThread = NULL; this->FakeClient = NULL; @@ -260,11 +256,7 @@ InspIRCd::InspIRCd(int argc, char** argv) : SocketEngine::Init(); - // Create base manager classes early, so nothing breaks - this->Users = new UserManager; - this->Config = new ServerConfig; - this->SNO = new SnomaskManager; dynamic_reference_base::reset_all(); this->XLines = new XLineManager;