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:
+1
-1
@@ -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
@@ -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