1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 16:23:12 +02:00

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
This commit is contained in:
Adam-
2009-10-17 01:17:19 +00:00
parent 72fed4d9bb
commit bbea1b5679
15 changed files with 56 additions and 2 deletions
+1 -1
View File
@@ -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;
}
+1 -1
View File
@@ -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;
}