summaryrefslogtreecommitdiff
path: root/src/command.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-04-11 00:51:08 -0500
committerAdam <Adam@anope.org>2013-04-11 00:51:08 -0500
commitdb4ed1cfafec7e75fb8b548dbdbe1ef93500c3bf (patch)
treed5471aca1c32ce0e483b58148639b576c2348e70 /src/command.cpp
parentcb64d806c164be33bf26ba300c0a15c130b91a15 (diff)
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.
Diffstat (limited to 'src/command.cpp')
-rw-r--r--src/command.cpp4
1 files changed, 3 insertions, 1 deletions
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)