summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorcyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-16 02:18:07 +0000
committercyberbotx <cyberbotx@5417fbe8-f217-4b02-8779-1006273d7864>2009-04-16 02:18:07 +0000
commitd8e1f104a4042ef985a7f6c6a2994e6fb931925c (patch)
tree401b89044b827c5b5dbe59e417ab0886b1c0be6c /src
parent76e83f613bb162b50f31eeb7513495c38a5f8993 (diff)
Show proper syntax errors on CS BAN and CS KICK, patch from Adam.
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2278 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r--src/core/cs_ban.c3
-rw-r--r--src/core/cs_kick.c3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/core/cs_ban.c b/src/core/cs_ban.c
index 058c2ad6f..21eed2551 100644
--- a/src/core/cs_ban.c
+++ b/src/core/cs_ban.c
@@ -107,8 +107,7 @@ class CommandCSBan : public Command
void OnSyntaxError(User *u)
{
- // XXX: temporary, this can be tackled when the language system isn't so goddamn hairy.
- syntax_error(s_ChanServ, u, "BAN", CHAN_UNBAN_SYNTAX);
+ syntax_error(s_ChanServ, u, "BAN", CHAN_BAN_SYNTAX);
}
};
diff --git a/src/core/cs_kick.c b/src/core/cs_kick.c
index c14b0f0a3..5ee3c2430 100644
--- a/src/core/cs_kick.c
+++ b/src/core/cs_kick.c
@@ -89,8 +89,7 @@ class CommandCSKick : public Command
void OnSyntaxError(User *u)
{
- // XXX: best I can do for now, fixme
- notice_lang(s_ChanServ, u, CHAN_X_NOT_IN_USE, "");
+ syntax_error(s_ChanServ, u, "KICK", CHAN_KICK_SYNTAX);
}
};