From bbea1b56798d8dc0e91fa1c0bf04f9bd3690bf60 Mon Sep 17 00:00:00 2001 From: Adam- Date: Sat, 17 Oct 2009 01:17:19 +0000 Subject: Give the proper error messages when trying to load/unload already loaded/unloaded modules, instead of just returning syntax error git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2567 5417fbe8-f217-4b02-8779-1006273d7864 --- src/core/os_modload.c | 2 +- src/core/os_modunload.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/core/os_modload.c b/src/core/os_modload.c index b363a2db8..65287d4e6 100644 --- a/src/core/os_modload.c +++ b/src/core/os_modload.c @@ -29,7 +29,7 @@ class CommandOSModLoad : public Command Module *m = findModule(name); if (m) { - notice_lang(s_OperServ, u, OPER_MODULE_LOAD_FAIL, name); + notice_lang(s_OperServ, u, OPER_MODULE_ALREADY_LOADED, name); return MOD_CONT; } diff --git a/src/core/os_modunload.c b/src/core/os_modunload.c index 8b5bf3bf5..13b998a34 100644 --- a/src/core/os_modunload.c +++ b/src/core/os_modunload.c @@ -30,7 +30,7 @@ class CommandOSModUnLoad : public Command Module *m = findModule(name); if (!m) { - this->OnSyntaxError(u); + notice_lang(s_OperServ, u, OPER_MODULE_ISNT_LOADED, name); return MOD_CONT; } -- cgit