diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-11 23:43:02 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-11-11 23:43:02 +0000 |
commit | d16f4930f462386a5ad5507e56c07ac6610ac2bb (patch) | |
tree | 4ce544024c3d45ac66ebdbf638b27b5aaf43741b /src/core/cs_modes.c | |
parent | 30b7e50a43a354e2eeeec66345b6469bd3424269 (diff) |
Made Command::OnSyntaxError accept a subcommand parameter, we now give syntax error messages for subcommands (eg, cs_set) instead of giving the general syntax error for the main command
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2643 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_modes.c')
-rw-r--r-- | src/core/cs_modes.c | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/core/cs_modes.c b/src/core/cs_modes.c index 981591e77..998b5fdd9 100644 --- a/src/core/cs_modes.c +++ b/src/core/cs_modes.c @@ -95,7 +95,7 @@ class CommandCSOp : public Command return true; } - void OnSyntaxError(User *u) + void OnSyntaxError(User *u, const ci::string &subcommand) { syntax_error(s_ChanServ, u, "OP", CHAN_OP_SYNTAX); } @@ -122,7 +122,7 @@ class CommandCSDeOp : public Command return true; } - void OnSyntaxError(User *u) + void OnSyntaxError(User *u, const ci::string &subcommand) { syntax_error(s_ChanServ, u, "DEOP", CHAN_DEOP_SYNTAX); } @@ -149,7 +149,7 @@ class CommandCSVoice : public Command return true; } - void OnSyntaxError(User *u) + void OnSyntaxError(User *u, const ci::string &subcommand) { syntax_error(s_ChanServ, u, "VOICE", CHAN_VOICE_SYNTAX); } @@ -176,7 +176,7 @@ class CommandCSDeVoice : public Command return true; } - void OnSyntaxError(User *u) + void OnSyntaxError(User *u, const ci::string &subcommand) { syntax_error(s_ChanServ, u, "DEVOICE", CHAN_DEVOICE_SYNTAX); } @@ -208,7 +208,7 @@ class CommandCSHalfOp : public Command return true; } - void OnSyntaxError(User *u) + void OnSyntaxError(User *u, const ci::string &subcommand) { syntax_error(s_ChanServ, u, "HALFOP", CHAN_HALFOP_SYNTAX); } @@ -241,7 +241,7 @@ class CommandCSDeHalfOp : public Command return true; } - void OnSyntaxError(User *u) + void OnSyntaxError(User *u, const ci::string &subcommand) { syntax_error(s_ChanServ, u, "DEHALFOP", CHAN_DEHALFOP_SYNTAX); } @@ -273,7 +273,7 @@ class CommandCSProtect : public Command return true; } - void OnSyntaxError(User *u) + void OnSyntaxError(User *u, const ci::string &subcommand) { syntax_error(s_ChanServ, u, "PROTECT", CHAN_PROTECT_SYNTAX); } @@ -304,7 +304,7 @@ class CommandCSDeProtect : public Command return true; } - void OnSyntaxError(User *u) + void OnSyntaxError(User *u, const ci::string &subcommand) { syntax_error(s_ChanServ, u, "DEPROTECT", CHAN_DEPROTECT_SYNTAX); } @@ -335,7 +335,7 @@ class CommandCSOwner : public Command return true; } - void OnSyntaxError(User *u) + void OnSyntaxError(User *u, const ci::string &subcommand) { syntax_error(s_ChanServ, u, "OWNER", CHAN_OWNER_SYNTAX); } @@ -366,7 +366,7 @@ class CommandCSDeOwner : public Command return true; } - void OnSyntaxError(User *u) + void OnSyntaxError(User *u, const ci::string &subcommand) { syntax_error(s_ChanServ, u, "DEOWNER", CHAN_DEOWNER_SYNTAX); } |