1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 02:46:38 +02:00

Remove the need for having to set syntax to "" for commands with no syntax

This commit is contained in:
Adam
2013-04-11 00:20:24 -05:00
parent 4f9b7874d6
commit cb64d806c1
14 changed files with 2 additions and 22 deletions
+2 -6
View File
@@ -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