summaryrefslogtreecommitdiff
path: root/src/core/hs_help.c
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-11 23:43:02 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-11-11 23:43:02 +0000
commitd16f4930f462386a5ad5507e56c07ac6610ac2bb (patch)
tree4ce544024c3d45ac66ebdbf638b27b5aaf43741b /src/core/hs_help.c
parent30b7e50a43a354e2eeeec66345b6469bd3424269 (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/core/hs_help.c')
-rw-r--r--src/core/hs_help.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hs_help.c b/src/core/hs_help.c
index da0e6d4ee..24d3946c8 100644
--- a/src/core/hs_help.c
+++ b/src/core/hs_help.c
@@ -29,7 +29,7 @@ class CommandHSHelp : public Command
return MOD_CONT;
}
- void OnSyntaxError(User *u)
+ void OnSyntaxError(User *u, const ci::string &subcommand)
{
notice_help(s_HostServ, u, HOST_HELP, s_HostServ);
FOREACH_MOD(I_OnHostServHelp, OnHostServHelp(u));