summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/modules/m_cloaking.cpp5
1 files changed, 3 insertions, 2 deletions
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);
}