From ac7defcd3e52695dcf5e5150e9fe3e1624205e64 Mon Sep 17 00:00:00 2001 From: attilamolnar Date: Sat, 13 Oct 2012 03:12:29 +0200 Subject: Attach to events and register services in init() --- src/modules/m_dccallow.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/modules/m_dccallow.cpp') diff --git a/src/modules/m_dccallow.cpp b/src/modules/m_dccallow.cpp index 3b0467ae5..68fee4a19 100644 --- a/src/modules/m_dccallow.cpp +++ b/src/modules/m_dccallow.cpp @@ -251,6 +251,11 @@ class ModuleDCCAllow : public Module ModuleDCCAllow() : cmd(this) + { + ext = NULL; + } + + void init() { ext = new SimpleExtItem("dccallow", this); ServerInstance->Extensions.Register(ext); @@ -260,7 +265,6 @@ class ModuleDCCAllow : public Module ServerInstance->Modules->Attach(eventlist, this, 5); } - virtual void OnRehash(User* user) { ReadFileConf(); -- cgit v1.2.3