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_release.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/ns_release.c') diff --git a/src/core/ns_release.c b/src/core/ns_release.c index a789a9e0a..a5fc3447a 100644 --- a/src/core/ns_release.c +++ b/src/core/ns_release.c @@ -81,7 +81,7 @@ class CommandNSRelease : public Command return true; } - void OnSyntaxError(User *u) + void OnSyntaxError(User *u, const ci::string &subcommand) { syntax_error(s_NickServ, u, "RELEASE", NICK_RELEASE_SYNTAX); } -- cgit