From cb64d806c164be33bf26ba300c0a15c130b91a15 Mon Sep 17 00:00:00 2001 From: Adam Date: Thu, 11 Apr 2013 00:20:24 -0500 Subject: Remove the need for having to set syntax to "" for commands with no syntax --- src/command.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/command.cpp') diff --git a/src/command.cpp b/src/command.cpp index 9d058fefb..a724145e1 100644 --- a/src/command.cpp +++ b/src/command.cpp @@ -150,12 +150,8 @@ void Command::SendSyntax(CommandSource &source) for (unsigned i = 1, j = this->syntax.size(); i < j; ++i) source.Reply(" \002%s %s\002", source.command.c_str(), this->syntax[i].c_str()); } -} - -void Command::SendSyntax(CommandSource &source, const Anope::string &syn) -{ - source.Reply(_("Syntax: \002%s %s\002"), source.command.c_str(), syn.c_str()); - source.Reply(MORE_INFO, Config->UseStrictPrivMsgString.c_str(), source.service->nick.c_str(), source.command.c_str()); + else + source.Reply(_("Syntax: \002%s\002"), source.command.c_str()); } bool Command::AllowUnregistered() const -- cgit