From db4ed1cfafec7e75fb8b548dbdbe1ef93500c3bf Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 11 Apr 2013 00:51:08 -0500 Subject: Merge chanserv saset and set back into one command since it no longer needs to be separated... replace chanserv/set privilege with chanserv/administration. Dont tell users to use 'help' for more help if there is no help. --- src/command.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/command.cpp') diff --git a/src/command.cpp b/src/command.cpp index a724145e1..dc095fdd8 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -189,7 +189,9 @@ bool Command::OnHelp(CommandSource &source, const Anope::string &subcommand) { r void Command::OnSyntaxError(CommandSource &source, const Anope::string &subcommand) { this->SendSyntax(source); - source.Reply(MORE_INFO, Config->UseStrictPrivMsgString.c_str(), source.service->nick.c_str(), source.command.c_str()); + bool has_help = source.service->commands.find("HELP") != source.service->commands.end(); + if (has_help) + source.Reply(MORE_INFO, Config->UseStrictPrivMsgString.c_str(), source.service->nick.c_str(), source.command.c_str()); } void RunCommand(CommandSource &source, const Anope::string &message) -- cgit