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 --- include/modules.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 47e4483d1..8543b0199 100644 --- a/include/modules.h +++ b/include/modules.h @@ -260,8 +260,9 @@ class CoreExport Command : public Flags /** Requested when the user provides bad syntax to this command (not enough params, etc). * @param u The user executing the command. + * @param subcommand The subcommand the user tried to use */ - virtual void OnSyntaxError(User *u); + virtual void OnSyntaxError(User *u, const ci::string &subcommand); /** Set which command permission (e.g. chanserv/forbid) is required for this command. * @param reststr The permission required to successfully execute this command -- cgit