1
0
mirror of https://github.com/anope/anope.git synced 2026-06-28 22:36:36 +02:00

Made the help command description code more sane

This commit is contained in:
Adam
2011-02-11 03:12:39 -05:00
parent 7bdf592f7e
commit 2529ff6dae
148 changed files with 215 additions and 939 deletions
+1 -9
View File
@@ -18,6 +18,7 @@ class CommandNSSetPrivate : public Command
public:
CommandNSSetPrivate(const Anope::string &spermission = "") : Command("PRIVATE", 2, 2, spermission)
{
this->SetDesc("Prevent the nickname from appearing in a \002%R" + NickServ->nick + " LIST\002");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -62,11 +63,6 @@ class CommandNSSetPrivate : public Command
{
SyntaxError(source, "SET PRIVATE", _("SET PRIVATE {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" PRIVATE Prevent the nickname from appearing in a \002%R%s LIST\002"), ChanServ->nick.c_str());
}
};
class CommandNSSASetPrivate : public CommandNSSetPrivate
@@ -93,10 +89,6 @@ class CommandNSSASetPrivate : public CommandNSSetPrivate
{
SyntaxError(source, "SASET PRIVATE", _("SASET \037nickname\037 PRIVATE {ON | OFF}"));
}
void OnServHelp(CommandSource &source)
{
}
};
class NSSetPrivate : public Module