From 284af258bf3c4dc7f409722d66bb0ac59e01e37d Mon Sep 17 00:00:00 2001 From: Adam Date: Wed, 27 Apr 2011 10:56:20 -0400 Subject: Added more useful functions to our LDAP API, allow adding newly registered accounts to LDAP, removed some unnecessary OnPre events and fixed unloading all modules --- modules/core/gl_main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'modules/core') diff --git a/modules/core/gl_main.cpp b/modules/core/gl_main.cpp index 84eea0e20..4b512ca0a 100644 --- a/modules/core/gl_main.cpp +++ b/modules/core/gl_main.cpp @@ -60,7 +60,7 @@ class GlobalCore : public Module this->SetAuthor("Anope"); this->SetType(CORE); - Implementation i[] = { I_OnPreRestart, I_OnPreShutdown, I_OnNewServer }; + Implementation i[] = { I_OnRestart, I_OnShutdown, I_OnNewServer }; ModuleManager::Attach(i, this, 3); ModuleManager::RegisterService(&this->myglobal); @@ -88,13 +88,13 @@ class GlobalCore : public Module delete Global; } - void OnPreRestart() + void OnRestart() { if (Config->GlobalOnCycle) global->SendGlobal(global->Bot(), "", Config->GlobalOnCycleMessage); } - void OnPreShutdown() + void OnShutdown() { if (Config->GlobalOnCycle) global->SendGlobal(global->Bot(), "", Config->GlobalOnCycleMessage); -- cgit