1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 02:46: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
+2 -10
View File
@@ -169,6 +169,7 @@ class CommandOSSession : public Command
public:
CommandOSSession() : Command("SESSION", 2, 2, "operserv/session")
{
this->SetDesc("View the list of host sessions");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -214,11 +215,6 @@ class CommandOSSession : public Command
{
SyntaxError(source, "SESSION", _("SESSION LIST \037limit\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" SESSION View the list of host sessions"));
}
};
class CommandOSException : public Command
@@ -438,6 +434,7 @@ class CommandOSException : public Command
public:
CommandOSException() : Command("EXCEPTION", 1, 5)
{
this->SetDesc("Modify the session-limit exception list");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -513,11 +510,6 @@ class CommandOSException : public Command
{
SyntaxError(source, "EXCEPTION", _("EXCEPTION {ADD | DEL | MOVE | LIST | VIEW} [\037params\037]"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" EXCEPTION Modify the session-limit exception list"));
}
};
class OSSession : public Module