summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-04-11 00:20:24 -0500
committerAdam <Adam@anope.org>2013-04-11 00:20:24 -0500
commitcb64d806c164be33bf26ba300c0a15c130b91a15 (patch)
tree6eaca4f695ea84ce30bcf4f918476c79c6f3d313 /src
parent4f9b7874d6b3a41939ecc2e872ec08d03af7b5f1 (diff)
Remove the need for having to set syntax to "" for commands with no syntax
Diffstat (limited to 'src')
-rw-r--r--src/command.cpp8
1 files changed, 2 insertions, 6 deletions
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