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/modules/cs_tban.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/modules/cs_tban.c')
-rw-r--r-- | src/modules/cs_tban.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/cs_tban.c b/src/modules/cs_tban.c index 9f8f2a2db..1aea779f5 100644 --- a/src/modules/cs_tban.c +++ b/src/modules/cs_tban.c @@ -72,14 +72,14 @@ class CommandCSTBan : public Command bool OnHelp(User *u, const ci::string &subcommand) { - this->OnSyntaxError(u); + this->OnSyntaxError(u, ""); ircdproto->SendMessage(findbot(s_ChanServ), u->nick, " "); me->NoticeLang(s_ChanServ, u, TBAN_HELP_DETAIL); return true; } - void OnSyntaxError(User *u) + void OnSyntaxError(User *u, const ci::string &subcommand) { me->NoticeLang(s_ChanServ, u, TBAN_SYNTAX); } |