From 2fda0fff4655e92e388d7823e5b1c1f0c6bcfe2d Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 19 Nov 2017 16:11:35 -0500 Subject: Add subcommand syntax help, and reference subcommand help in syntax error messages --- modules/extra/stats/chanstats.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/extra/stats') diff --git a/modules/extra/stats/chanstats.cpp b/modules/extra/stats/chanstats.cpp index adc002c8c..3e40f7c31 100644 --- a/modules/extra/stats/chanstats.cpp +++ b/modules/extra/stats/chanstats.cpp @@ -43,7 +43,7 @@ class CommandCSSetChanstats : public Command source.Reply(_("Chanstats statistics are now disabled for this channel.")); } else - this->OnSyntaxError(source, ""); + this->OnSyntaxError(source); } bool OnHelp(CommandSource &source, const Anope::string &) override @@ -96,7 +96,7 @@ class CommandNSSetChanstats : public Command source.Reply(_("Chanstats statistics are now disabled for your nick.")); } else - this->OnSyntaxError(source, "CHANSTATS"); + this->OnSyntaxError(source); } void Execute(CommandSource &source, const std::vector ¶ms) override -- cgit