diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-28 23:02:07 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-28 23:02:07 +0000 |
commit | a08b3ec5924c946308ac086cd3ee7d701610d3be (patch) | |
tree | 84da442a85ffeccd6425cc7c85db9eda6e881753 /src/modulemanager.cpp | |
parent | f6b823ade85160f94544d1ad1de4d8fbc42b2712 (diff) |
Massive move of all of the Config variables out of global scope to the Config class
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2674 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/modulemanager.cpp')
-rw-r--r-- | src/modulemanager.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modulemanager.cpp b/src/modulemanager.cpp index 738c2f4ec..2c0694edc 100644 --- a/src/modulemanager.cpp +++ b/src/modulemanager.cpp @@ -246,8 +246,8 @@ int ModuleManager::LoadModule(const std::string &modname, User * u) if (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()); + ircdproto->SendGlobops(Config.s_OperServ, "%s loaded module %s", u->nick, modname.c_str()); + notice_lang(Config.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 @@ -263,21 +263,21 @@ int ModuleManager::UnloadModule(Module *m, User *u) if (!m || !m->handle) { if (u) - notice_lang(s_OperServ, u, OPER_MODULE_REMOVE_FAIL, m->name.c_str()); + notice_lang(Config.s_OperServ, u, OPER_MODULE_REMOVE_FAIL, m->name.c_str()); return MOD_ERR_PARAMS; } if (m->GetPermanent() || m->type == PROTOCOL || m->type == ENCRYPTION) { if (u) - notice_lang(s_OperServ, u, OPER_MODULE_NO_UNLOAD); + notice_lang(Config.s_OperServ, u, OPER_MODULE_NO_UNLOAD); return MOD_ERR_NOUNLOAD; } if (u) { - ircdproto->SendGlobops(s_OperServ, "%s unloaded module %s", u->nick, m->name.c_str()); - notice_lang(s_OperServ, u, OPER_MODULE_UNLOADED, m->name.c_str()); + ircdproto->SendGlobops(Config.s_OperServ, "%s unloaded module %s", u->nick, m->name.c_str()); + notice_lang(Config.s_OperServ, u, OPER_MODULE_UNLOADED, m->name.c_str()); } DeleteModule(m); |