1
0
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:
Adam-
2009-10-11 15:31:34 +00:00
parent f06eed9809
commit 777c6cf073
3 changed files with 12 additions and 1 deletions
+5
View File
@@ -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;