summaryrefslogtreecommitdiff
path: root/src/core/hs_set.cpp
diff options
context:
space:
mode:
authorAdam <Adam@drink-coca-cola.info>2010-05-30 17:21:44 -0400
committerAdam <Adam@anope.org>2010-06-18 21:04:09 -0400
commit6cd88494662c5c4af2da891926dcc82367596cb9 (patch)
tree59f67163abee4e7468a26b25f9cecca270f57b70 /src/core/hs_set.cpp
parentb8f9116b19eb511c4f5e6a683725f50bf732a7dd (diff)
Moved the *Serv help functions to Command, will come in use later with subcommands
Diffstat (limited to 'src/core/hs_set.cpp')
-rw-r--r--src/core/hs_set.cpp11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/core/hs_set.cpp b/src/core/hs_set.cpp
index a570986ac..3aeb5c6be 100644
--- a/src/core/hs_set.cpp
+++ b/src/core/hs_set.cpp
@@ -149,6 +149,11 @@ class CommandHSSet : public Command
{
syntax_error(Config.s_HostServ, u, "SET", HOST_SET_SYNTAX);
}
+
+ void OnServHelp(User *u)
+ {
+ notice_lang(Config.s_HostServ, u, HOST_HELP_CMD_SET);
+ }
};
class HSSet : public Module
@@ -161,12 +166,6 @@ class HSSet : public Module
this->SetType(CORE);
this->AddCommand(HostServ, new CommandHSSet());
-
- ModuleManager::Attach(I_OnHostServHelp, this);
- }
- void OnHostServHelp(User *u)
- {
- notice_lang(Config.s_HostServ, u, HOST_HELP_CMD_SET);
}
};