diff options
author | Adam <Adam@drink-coca-cola.info> | 2010-05-30 17:21:44 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2010-06-18 21:04:09 -0400 |
commit | 6cd88494662c5c4af2da891926dcc82367596cb9 (patch) | |
tree | 59f67163abee4e7468a26b25f9cecca270f57b70 /src/modules/hs_request.cpp | |
parent | b8f9116b19eb511c4f5e6a683725f50bf732a7dd (diff) |
Moved the *Serv help functions to Command, will come in use later with subcommands
Diffstat (limited to 'src/modules/hs_request.cpp')
-rw-r--r-- | src/modules/hs_request.cpp | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/src/modules/hs_request.cpp b/src/modules/hs_request.cpp index 385dfc8c5..cc5637bef 100644 --- a/src/modules/hs_request.cpp +++ b/src/modules/hs_request.cpp @@ -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) |