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:
@@ -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> ¶ms)
|
||||
{
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user