diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-17 01:17:19 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-10-17 01:17:19 +0000 |
commit | bbea1b56798d8dc0e91fa1c0bf04f9bd3690bf60 (patch) | |
tree | f706b31307999c6cf093a19d383c79c264b3d32b /src | |
parent | 72fed4d9bb441eea2be8c1f9b3309bf505356a07 (diff) |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/core/os_modload.c | 2 | ||||
-rw-r--r-- | src/core/os_modunload.c | 2 |
2 files changed, 2 insertions, 2 deletions
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; } |