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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user