1
0
mirror of https://github.com/anope/anope.git synced 2026-06-27 21:46:37 +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 -15
View File
@@ -19,6 +19,7 @@ class CommandNSGroup : public Command
CommandNSGroup() : Command("GROUP", 2, 2)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTERED);
this->SetDesc("Join a group");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -173,11 +174,6 @@ class CommandNSGroup : public Command
{
SyntaxError(source, "GROUP", _("\037target\037 \037password\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" GROUP Join a group"));
}
};
class CommandNSUngroup : public Command
@@ -185,6 +181,7 @@ class CommandNSUngroup : public Command
public:
CommandNSUngroup() : Command("UNGROUP", 0, 1)
{
this->SetDesc("Remove a nick from a group");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -242,11 +239,6 @@ class CommandNSUngroup : public Command
"nick in your group."));
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" UNGROUP Remove a nick from a group"));
}
};
class CommandNSGList : public Command
@@ -254,6 +246,7 @@ class CommandNSGList : public Command
public:
CommandNSGList() : Command("GLIST", 0, 1)
{
this->SetDesc("Lists all nicknames in your group");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
@@ -300,11 +293,6 @@ class CommandNSGList : public Command
return true;
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" GLIST Lists all nicknames in your group"));
}
};
class NSGroup : public Module