From d16f4930f462386a5ad5507e56c07ac6610ac2bb Mon Sep 17 00:00:00 2001 From: Adam- Date: Wed, 11 Nov 2009 23:43:02 +0000 Subject: 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 --- src/core/cs_drop.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/cs_drop.c') diff --git a/src/core/cs_drop.c b/src/core/cs_drop.c index 5d4c43bfb..8363b9400 100644 --- a/src/core/cs_drop.c +++ b/src/core/cs_drop.c @@ -102,7 +102,7 @@ class CommandCSDrop : public Command return true; } - void OnSyntaxError(User *u) + void OnSyntaxError(User *u, const ci::string &subcommand) { syntax_error(s_ChanServ, u, "DROP", CHAN_DROP_SYNTAX); } -- cgit