mirror of
https://github.com/anope/anope.git
synced 2026-07-01 14:46:39 +02:00
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
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user