1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 06:26:37 +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:
rburchell
2009-02-11 10:46:14 +00:00
parent 3cc5bf39f5
commit 136ea16ed8
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -205,7 +205,7 @@ class Command
/** Requested when the user provides bad syntax to this command (not enough params, etc).
* @param u The user executing the command.
*/
virtual void OnBadSyntax(User *u) { }
virtual void OnSyntaxError(User *u) { }
int (*has_priv)(User *u); /* Returns 1 if user may use command, else 0 */
+1 -1
View File
@@ -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
View File
@@ -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);
}
+1 -1
View File
@@ -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);
}