summaryrefslogtreecommitdiff
path: root/src/modulemanager.cpp
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-11 15:31:34 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-11 15:31:34 +0000
commit777c6cf07347fe96aee065046cbcbe4ac50fe1fb (patch)
treefe78d1e3e061d44ff8d713b5a50dc6ee84cadbe1 /src/modulemanager.cpp
parentf06eed98099e6d9ba32aeb6f247e85e0914113d6 (diff)
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
Diffstat (limited to 'src/modulemanager.cpp')
-rw-r--r--src/modulemanager.cpp5
1 files changed, 5 insertions, 0 deletions
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;