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/ns_group.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/ns_group.c') diff --git a/src/core/ns_group.c b/src/core/ns_group.c index f079e2a99..3961f1dd1 100644 --- a/src/core/ns_group.c +++ b/src/core/ns_group.c @@ -143,7 +143,7 @@ class CommandNSGroup : public Command return true; } - void OnSyntaxError(User *u) + void OnSyntaxError(User *u, const ci::string &subcommand) { syntax_error(s_NickServ, u, "GROUP", NICK_GROUP_SYNTAX); } -- cgit