mirror of
https://github.com/anope/anope.git
synced 2026-07-09 00:23:13 +02:00
Moved the *Serv help functions to Command, will come in use later with subcommands
This commit is contained in:
@@ -293,6 +293,11 @@ class CommandOSStats : public Command
|
||||
notice_help(Config.s_OperServ, u, OPER_HELP_STATS);
|
||||
return true;
|
||||
}
|
||||
|
||||
void OnServHelp(User *u)
|
||||
{
|
||||
notice_lang(Config.s_OperServ, u, OPER_HELP_CMD_STATS);
|
||||
}
|
||||
};
|
||||
|
||||
class OSStats : public Module
|
||||
@@ -305,12 +310,6 @@ class OSStats : public Module
|
||||
this->SetType(CORE);
|
||||
|
||||
this->AddCommand(OperServ, new CommandOSStats());
|
||||
|
||||
ModuleManager::Attach(I_OnOperServHelp, this);
|
||||
}
|
||||
void OnOperServHelp(User *u)
|
||||
{
|
||||
notice_lang(Config.s_OperServ, u, OPER_HELP_CMD_STATS);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user