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_chghost.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/modules/m_chghost.cpp') diff --git a/src/modules/m_chghost.cpp b/src/modules/m_chghost.cpp index b259bea8e..d98e14d75 100644 --- a/src/modules/m_chghost.cpp +++ b/src/modules/m_chghost.cpp @@ -92,6 +92,10 @@ class ModuleChgHost : public Module char hostmap[256]; public: ModuleChgHost() : cmd(this, hostmap) + { + } + + void init() { OnRehash(NULL); ServerInstance->AddCommand(&cmd); @@ -99,7 +103,6 @@ class ModuleChgHost : public Module ServerInstance->Modules->Attach(eventlist, this, 1); } - void OnRehash(User* user) { std::string hmap = ServerInstance->Config->ConfValue("hostname")->getString("charmap", "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz.-_/0123456789"); -- cgit v1.2.3