mirror of
https://github.com/anope/anope.git
synced 2026-07-08 20:03:13 +02:00
Moved the *Serv help functions to Command, will come in use later with subcommands
This commit is contained in:
+5
-6
@@ -65,6 +65,11 @@ class CommandBSAct : public Command
|
||||
notice_help(Config.s_BotServ, u, BOT_HELP_ACT);
|
||||
return true;
|
||||
}
|
||||
|
||||
void OnServHelp(User *u)
|
||||
{
|
||||
notice_lang(Config.s_BotServ, u, BOT_HELP_CMD_ACT);
|
||||
}
|
||||
};
|
||||
|
||||
class BSAct : public Module
|
||||
@@ -76,12 +81,6 @@ class BSAct : public Module
|
||||
this->SetVersion(VERSION_STRING);
|
||||
this->SetType(CORE);
|
||||
this->AddCommand(BotServ, new CommandBSAct());
|
||||
|
||||
ModuleManager::Attach(I_OnBotServHelp, this);
|
||||
}
|
||||
void OnBotServHelp(User *u)
|
||||
{
|
||||
notice_lang(Config.s_BotServ, u, BOT_HELP_CMD_ACT);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user