1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 10:56: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 -7
View File
@@ -19,12 +19,13 @@ class CommandCSRegister : public Command
CommandCSRegister() : Command("REGISTER", 2, 2)
{
this->SetFlag(CFLAG_ALLOW_UNREGISTEREDCHANNEL);
this->SetDesc("Register a channel");
}
CommandReturn Execute(CommandSource &source, const std::vector<Anope::string> &params)
{
const Anope::string &chan = params[0];
const Anope::string &desc = params[1];
const Anope::string &chdesc = params[1];
User *u = source.u;
ChannelInfo *ci = source.ci;
@@ -52,7 +53,7 @@ class CommandCSRegister : public Command
{
ci = new ChannelInfo(chan);
ci->founder = u->Account();
ci->desc = desc;
ci->desc = chdesc;
if (c && !c->topic.empty())
{
@@ -126,11 +127,6 @@ class CommandCSRegister : public Command
{
SyntaxError(source, "REGISTER", _("REGISTER \037channel\037 \037description\037"));
}
void OnServHelp(CommandSource &source)
{
source.Reply(_(" REGISTER Register a channel"));
}
};
class CSRegister : public Module