1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 10:16:40 +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 -10
View File
@@ -18,6 +18,7 @@ class CommandNSSetKill : public Command
public:
CommandNSSetKill(const Anope::string &spermission = "") : Command("KILL", 2, 3, spermission)
{
this->SetDesc("Turn protection on or off");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -92,11 +93,6 @@ class CommandNSSetKill : public Command
{
SyntaxError(source, "SET KILL", Config->NSAllowKillImmed ? _("SET KILL {ON | QUICK | IMMED | OFF}") : _("SET KILL {ON | QUICK | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" KILL Turn protection on or off"));
}
};
class CommandNSSASetKill : public CommandNSSetKill
@@ -129,11 +125,6 @@ class CommandNSSASetKill : public CommandNSSetKill
{
SyntaxError(source, "SASET KILL", Config->NSAllowKillImmed ? _("SASET \037nickname\037 KILL {ON | QUICK | IMMED | OFF}") : _("SASET \037nickname\037 KILL {ON | QUICK | OFF}"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" KILL Turn protection on or off"));
}
};
class NSSetKill : public Module