From 12923aae21367d948c74e4bdceaf98b61d9f4992 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 9 Nov 2007 17:04:17 +0000 Subject: Same fix here git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8547 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cloaking.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'src/modules/m_cloaking.cpp') diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 7209c2714..c0edf21a9 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -329,11 +329,12 @@ class ModuleCloaking : public Module /* Create new mode handler object */ cu = new CloakUser(ServerInstance, this, HashModule); - /* Register it with the core */ + OnRehash(NULL,""); + + /* Register it with the core */ if (!ServerInstance->AddMode(cu)) throw ModuleException("Could not add new modes!"); - OnRehash(NULL,""); Implementation eventlist[] = { I_OnRehash }; ServerInstance->Modules->Attach(eventlist, this, 1); } -- cgit v1.2.3