mirror of
https://github.com/anope/anope.git
synced 2026-07-02 02:46:39 +02:00
Moved the *Serv help functions to Command, will come in use later with subcommands
This commit is contained in:
@@ -205,6 +205,11 @@ class CommandHSRequest : public Command
|
||||
{
|
||||
me->NoticeLang(Config.s_HostServ, u, LNG_REQUEST_SYNTAX);
|
||||
}
|
||||
|
||||
void OnServHelp(User *u)
|
||||
{
|
||||
me->NoticeLang(Config.s_HostServ, u, LNG_HELP);
|
||||
}
|
||||
};
|
||||
|
||||
class CommandHSActivate : public Command
|
||||
@@ -257,6 +262,11 @@ class CommandHSActivate : public Command
|
||||
{
|
||||
me->NoticeLang(Config.s_HostServ, u, LNG_ACTIVATE_SYNTAX);
|
||||
}
|
||||
|
||||
void OnServHelp(User *u)
|
||||
{
|
||||
me->NoticeLang(Config.s_HostServ, u, LNG_HELP_SETTER);
|
||||
}
|
||||
};
|
||||
|
||||
class CommandHSReject : public Command
|
||||
@@ -645,8 +655,8 @@ class HSRequest : public Module
|
||||
this->InsertLanguage(LANG_RU, LNG_NUM_STRINGS, langtable_ru);
|
||||
this->InsertLanguage(LANG_IT, LNG_NUM_STRINGS, langtable_it);
|
||||
|
||||
Implementation i[] = { I_OnHostServHelp, I_OnPreCommand, I_OnDatabaseRead, I_OnDatabaseWrite };
|
||||
ModuleManager::Attach(i, this, 4);
|
||||
Implementation i[] = { I_OnPreCommand, I_OnDatabaseRead, I_OnDatabaseWrite };
|
||||
ModuleManager::Attach(i, this, 3);
|
||||
}
|
||||
|
||||
~HSRequest()
|
||||
@@ -698,12 +708,6 @@ class HSRequest : public Module
|
||||
return EVENT_CONTINUE;
|
||||
}
|
||||
|
||||
void OnHostServHelp(User *u)
|
||||
{
|
||||
this->NoticeLang(Config.s_HostServ, u, LNG_HELP);
|
||||
this->NoticeLang(Config.s_HostServ, u, LNG_HELP_SETTER);
|
||||
}
|
||||
|
||||
EventReturn OnDatabaseRead(const std::vector<std::string> ¶ms)
|
||||
{
|
||||
if (params[0] == "HS_REQUEST" && params.size() >= 5)
|
||||
|
||||
Reference in New Issue
Block a user