diff options
author | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-08 00:21:29 +0000 |
---|---|---|
committer | Robin Burchell w00t@inspircd.org <Robin Burchell w00t@inspircd.org@5417fbe8-f217-4b02-8779-1006273d7864> | 2008-11-08 00:21:29 +0000 |
commit | b8c04482bbbe531e48bb1328d17db8acb1e323a0 (patch) | |
tree | 3a56e0f1771d9aa249215c18a2de17b4e2e60189 /src/core/os_modload.c | |
parent | e459e5833e10f3de02168ff99f10b28090d90aac (diff) |
This compiles. I have absolutely no idea if it works.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@1579 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/os_modload.c')
-rw-r--r-- | src/core/os_modload.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/src/core/os_modload.c b/src/core/os_modload.c index 637ec1dd3..d1a906c31 100644 --- a/src/core/os_modload.c +++ b/src/core/os_modload.c @@ -71,14 +71,10 @@ int do_modload(User * u) return MOD_CONT; } - m = createModule(name); - alog("Trying to load module [%s]", mod_operation_queue->m->name); - status = loadModule(mod_operation_queue->m, mod_operation_queue->u); - alog("Module loading status: %d (%s)", status, ModuleGetErrStr(status)); + int status = loadModule(name, u); if (status != MOD_ERR_OK) { - notice_lang(s_OperServ, user, OPER_MODULE_LOAD_FAIL, m->name); - destroyModule(m); + notice_lang(s_OperServ, u, OPER_MODULE_LOAD_FAIL, m->name.c_str()); } return MOD_CONT; |