summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/init.c1
-rw-r--r--src/modulemanager.cpp5
2 files changed, 6 insertions, 0 deletions
diff --git a/src/init.c b/src/init.c
index 4c87ae5c4..5cda3e198 100644
--- a/src/init.c
+++ b/src/init.c
@@ -606,6 +606,7 @@ int init_secondary(int ac, char **av)
bi = new BotInfo(s_GlobalNoticer, ServiceUser, ServiceHost, desc_GlobalNoticer);
}
+ FOREACH_MOD(I_OnPostLoadDatabases, OnPostLoadDatabases());
/* Save the databases back to file/mysql to reflect any changes */
alog("Info: Reflecting database records.");
save_databases();
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp
index e0fada619..68609421b 100644
--- a/src/modulemanager.cpp
+++ b/src/modulemanager.cpp
@@ -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;