1
0
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:
Adam
2010-05-30 17:21:44 -04:00
committed by Adam
parent b8f9116b19
commit 6cd8849466
117 changed files with 707 additions and 801 deletions
+12 -8
View File
@@ -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> &params)
{
if (params[0] == "HS_REQUEST" && params.size() >= 5)