mirror of
https://github.com/anope/anope.git
synced 2026-07-03 13:03:14 +02:00
Fix naming discrepancy meaning some commands were not issuing syntax errors.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2012 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
+1
-1
@@ -95,7 +95,7 @@ void mod_run_cmd(char *service, User * u, CommandHash * cmdTable[], const char *
|
||||
|
||||
if (params.size() < c->MinParams)
|
||||
{
|
||||
c->OnBadSyntax(u);
|
||||
c->OnSyntaxError(u);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -72,7 +72,7 @@ class CommandBSAct : public Command
|
||||
return MOD_CONT;
|
||||
}
|
||||
|
||||
void OnBadSyntax(User *u)
|
||||
void OnSyntaxError(User *u)
|
||||
{
|
||||
syntax_error(s_BotServ, u, "ACT", BOT_ACT_SYNTAX);
|
||||
}
|
||||
|
||||
@@ -53,7 +53,7 @@ class CommandBSUnassign : public Command
|
||||
return true;
|
||||
}
|
||||
|
||||
void OnBadSyntax(User *u)
|
||||
void OnSyntaxError(User *u)
|
||||
{
|
||||
syntax_error(s_BotServ, u, "UNASSIGN", BOT_UNASSIGN_SYNTAX);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user