diff options
Diffstat (limited to 'modules/m_helpchan.cpp')
-rw-r--r-- | modules/m_helpchan.cpp | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/modules/m_helpchan.cpp b/modules/m_helpchan.cpp index e0163b925..d39b5afd9 100644 --- a/modules/m_helpchan.cpp +++ b/modules/m_helpchan.cpp @@ -14,11 +14,8 @@ class HelpChannel : public Module public: HelpChannel(const Anope::string &modname, const Anope::string &creator) : Module(modname, creator, VENDOR) { - Implementation i[] = { I_OnChannelModeSet, I_OnReload }; ModuleManager::Attach(i, this, sizeof(i) / sizeof(Implementation)); - - OnReload(); } EventReturn OnChannelModeSet(Channel *c, MessageSource &setter, const Anope::string &mname, const Anope::string ¶m) anope_override @@ -34,11 +31,9 @@ class HelpChannel : public Module return EVENT_CONTINUE; } - void OnReload() anope_override + void OnReload(ServerConfig *conf, ConfigReader &reader) anope_override { - ConfigReader config; - - this->HelpChan = config.ReadValue("m_helpchan", "helpchannel", "", 0); + this->HelpChan = reader.ReadValue("m_helpchan", "helpchannel", "", 0); } }; |