1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 11:06:38 +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
+3 -13
View File
@@ -17,7 +17,8 @@ class CommandCSSuspend : public Command
{
public:
CommandCSSuspend() : Command("SUSPEND", 1, 2, "chanserv/suspend")
{
{
this->SetDesc("Prevent a channel from being used preserving channel data and settings");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -90,13 +91,6 @@ class CommandCSSuspend : public Command
{
SyntaxError(source, "SUSPEND", Config->ForceForbidReason ? _("SUSPEND \037channel\037 \037reason\037") : _("SUSPEND \037channel\037 \037freason\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SUSPEND Prevent a channel from being used preserving\n"
" channel data and settings"));
}
};
class CommandCSUnSuspend : public Command
@@ -105,6 +99,7 @@ class CommandCSUnSuspend : public Command
CommandCSUnSuspend() : Command("UNSUSPEND", 1, 1, "chanserv/suspend")
{
this->SetFlag(CFLAG_ALLOW_SUSPENDED);
this->SetDesc("Releases a suspended channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -151,11 +146,6 @@ class CommandCSUnSuspend : public Command
{
SyntaxError(source, "UNSUSPEND", _("UNSUSPEND \037channel\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" UNSUSPEND Releases a suspended channel"));
}
};
class CSSuspend : public Module