mirror of
https://github.com/anope/anope.git
synced 2026-06-25 03:46:36 +02:00
Added in new plaintext databases. Note: This currently has no automatic backup feature. Big thanks to Phil on this for mass scale testing
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2722 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
@@ -255,6 +255,8 @@ int ModuleManager::LoadModule(const std::string &modname, User * u)
|
||||
m->OnPostLoadDatabases();
|
||||
}
|
||||
|
||||
FOREACH_MOD(I_OnModuleLoad, OnModuleLoad(u, m));
|
||||
|
||||
return MOD_ERR_OK;
|
||||
}
|
||||
|
||||
@@ -267,7 +269,7 @@ int ModuleManager::UnloadModule(Module *m, User *u)
|
||||
return MOD_ERR_PARAMS;
|
||||
}
|
||||
|
||||
if (m->GetPermanent() || m->type == PROTOCOL || m->type == ENCRYPTION)
|
||||
if (m->GetPermanent() || m->type == PROTOCOL || m->type == ENCRYPTION || m->type == DATABASE)
|
||||
{
|
||||
if (u)
|
||||
notice_lang(Config.s_OperServ, u, OPER_MODULE_NO_UNLOAD);
|
||||
@@ -280,6 +282,8 @@ int ModuleManager::UnloadModule(Module *m, User *u)
|
||||
notice_lang(Config.s_OperServ, u, OPER_MODULE_UNLOADED, m->name.c_str());
|
||||
}
|
||||
|
||||
FOREACH_MOD(I_OnModuleUnload, OnModuleUnload(u, m));
|
||||
|
||||
DeleteModule(m);
|
||||
return MOD_ERR_OK;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user