diff options
| author | Adam <Adam@drink-coca-cola.info> | 2010-05-14 20:35:38 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2010-06-18 21:01:53 -0400 |
| commit | f049124905bd9f53439293e873003cb027a17b91 (patch) | |
| tree | 352ed9251fd47055dd770aa2d5eabb20247e4b43 /src/core/os_modload.c | |
| parent | 81a45520a773732c9f46785f27aa1956150775d7 (diff) | |
Rewrote the hashing system to use std::tr1::unordered_map
Diffstat (limited to 'src/core/os_modload.c')
| -rw-r--r-- | src/core/os_modload.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/core/os_modload.c b/src/core/os_modload.c index 870c7b0a4..ddda212d5 100644 --- a/src/core/os_modload.c +++ b/src/core/os_modload.c @@ -23,19 +23,19 @@ class CommandOSModLoad : public Command CommandReturn Execute(User *u, const std::vector<ci::string> ¶ms) { - const char *name = params[0].c_str(); + const std::string mname = params[0].c_str(); - Module *m = findModule(name); + Module *m = FindModule(mname); if (m) { - notice_lang(Config.s_OperServ, u, OPER_MODULE_ALREADY_LOADED, name); + notice_lang(Config.s_OperServ, u, OPER_MODULE_ALREADY_LOADED, mname.c_str()); return MOD_CONT; } - int status = ModuleManager::LoadModule(name, u); + int status = ModuleManager::LoadModule(mname, u); if (status != MOD_ERR_OK) { - notice_lang(Config.s_OperServ, u, OPER_MODULE_LOAD_FAIL, name); + notice_lang(Config.s_OperServ, u, OPER_MODULE_LOAD_FAIL, mname.c_str()); } return MOD_CONT; @@ -63,7 +63,7 @@ class OSModLoad : public Module this->SetType(CORE); this->SetPermanent(true); - this->AddCommand(OPERSERV, new CommandOSModLoad()); + this->AddCommand(OperServ, new CommandOSModLoad()); ModuleManager::Attach(I_OnOperServHelp, this); } |
