mirror of
https://github.com/anope/anope.git
synced 2026-06-26 10:36:38 +02:00
Added OnPostDatabaseLoad event, which triggers after the cores databases have been loaded AND immediatly after a module is loaded *if* the core has already been loaded
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2552 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -260,6 +260,11 @@ int ModuleManager::LoadModule(const std::string &modname, User * u)
|
||||
{
|
||||
ircdproto->SendGlobops(s_OperServ, "%s loaded module %s", u->nick, modname.c_str());
|
||||
notice_lang(s_OperServ, u, OPER_MODULE_LOADED, modname.c_str());
|
||||
|
||||
/* If a user is loading this module, then the core databases have already been loaded
|
||||
* so trigger the event manually
|
||||
*/
|
||||
m->OnPostLoadDatabases();
|
||||
}
|
||||
|
||||
return MOD_ERR_OK;
|
||||
|
||||
Reference in New Issue
Block a user