From f049124905bd9f53439293e873003cb027a17b91 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 14 May 2010 20:35:38 -0400 Subject: Rewrote the hashing system to use std::tr1::unordered_map --- src/core/os_modload.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/core/os_modload.c') 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 ¶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); } -- cgit