diff options
author | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-13 00:35:55 +0000 |
---|---|---|
committer | cyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864> | 2009-04-13 00:35:55 +0000 |
commit | 22b53ec9cd63d47ee481d45d476584496ba5a6a5 (patch) | |
tree | 2b8bcf0d5bda424de3d134589a8002c93e72c800 /src/core/cs_modes.c | |
parent | dccb56a496cf2739a41deb9627b11c08ca840de7 (diff) |
Correct help for CS INFO and add syntax errors for cs_modes, patch from Adam.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2274 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src/core/cs_modes.c')
-rw-r--r-- | src/core/cs_modes.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/src/core/cs_modes.c b/src/core/cs_modes.c index 4baf80039..c0beaab90 100644 --- a/src/core/cs_modes.c +++ b/src/core/cs_modes.c @@ -83,6 +83,11 @@ class CommandCSOp : public Command notice_help(s_ChanServ, u, CHAN_HELP_OP); return true; } + + void OnSyntaxError(User *u) + { + syntax_error(s_ChanServ, u, "OP", CHAN_OP_SYNTAX); + } }; @@ -104,6 +109,11 @@ class CommandCSDeOp : public Command notice_help(s_ChanServ, u, CHAN_HELP_DEOP); return true; } + + void OnSyntaxError(User *u) + { + syntax_error(s_ChanServ, u, "DEOP", CHAN_DEOP_SYNTAX); + } }; @@ -125,6 +135,11 @@ class CommandCSVoice : public Command notice_help(s_ChanServ, u, CHAN_HELP_VOICE); return true; } + + void OnSyntaxError(User *u) + { + syntax_error(s_ChanServ, u, "VOICE", CHAN_VOICE_SYNTAX); + } }; @@ -146,6 +161,11 @@ class CommandCSDeVoice : public Command notice_help(s_ChanServ, u, CHAN_HELP_DEVOICE); return true; } + + void OnSyntaxError(User *u) + { + syntax_error(s_ChanServ, u, "DEVOICE", CHAN_DEVOICE_SYNTAX); + } }; @@ -173,6 +193,11 @@ class CommandCSHalfOp : public Command notice_help(s_ChanServ, u, CHAN_HELP_HALFOP); return true; } + + void OnSyntaxError(User *u) + { + syntax_error(s_ChanServ, u, "HALFOP", CHAN_HALFOP_SYNTAX); + } }; @@ -199,6 +224,11 @@ class CommandCSDeHalfOp : public Command notice_help(s_ChanServ, u, CHAN_HELP_DEHALFOP); return true; } + + void OnSyntaxError(User *u) + { + syntax_error(s_ChanServ, u, "DEHALFOP", CHAN_DEHALFOP_SYNTAX); + } }; @@ -225,6 +255,11 @@ class CommandCSProtect : public Command notice_help(s_ChanServ, u, CHAN_HELP_PROTECT); return true; } + + void OnSyntaxError(User *u) + { + syntax_error(s_ChanServ, u, "PROTECT", CHAN_PROTECT_SYNTAX); + } }; /*************************************************************************/ @@ -252,6 +287,11 @@ class CommandCSDeProtect : public Command notice_help(s_ChanServ, u, CHAN_HELP_DEPROTECT); return true; } + + void OnSyntaxError(User *u) + { + syntax_error(s_ChanServ, u, "DEPROTECT", CHAN_DEPROTECT_SYNTAX); + } }; /*************************************************************************/ @@ -274,6 +314,11 @@ class CommandCSOwner : public Command notice_help(s_ChanServ, u, CHAN_HELP_OWNER); return true; } + + void OnSyntaxError(User *u) + { + syntax_error(s_ChanServ, u, "OWNER", CHAN_OWNER_SYNTAX); + } }; /*************************************************************************/ @@ -296,6 +341,11 @@ class CommandCSDeOwner : public Command notice_help(s_ChanServ, u, CHAN_HELP_DEOWNER); return true; } + + void OnSyntaxError(User *u) + { + syntax_error(s_ChanServ, u, "DEOWNER", CHAN_DEOWNER_SYNTAX); + } }; |