summaryrefslogtreecommitdiff
path: root/src/modules/m_helpop.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/modules/m_helpop.cpp')
-rw-r--r--src/modules/m_helpop.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/modules/m_helpop.cpp b/src/modules/m_helpop.cpp
index cbb56c3f9..5cd8d8ea0 100644
--- a/src/modules/m_helpop.cpp
+++ b/src/modules/m_helpop.cpp
@@ -119,15 +119,18 @@ class ModuleHelpop : public Module
ModuleHelpop()
: cmd(this), ho(this)
{
+ }
+
+ void init()
+ {
ReadConfig();
- if (!ServerInstance->Modes->AddMode(&ho))
- throw ModuleException("Could not add new modes!");
- ServerInstance->AddCommand(&cmd);
+ ServerInstance->Modules->AddService(ho);
+ ServerInstance->Modules->AddService(cmd);
Implementation eventlist[] = { I_OnRehash, I_OnWhois };
ServerInstance->Modules->Attach(eventlist, this, 2);
}
- virtual void ReadConfig()
+ void ReadConfig()
{
ConfigReader MyConf;