]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Same fix here
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 9 Nov 2007 17:04:17 +0000 (17:04 +0000)
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>
Fri, 9 Nov 2007 17:04:17 +0000 (17:04 +0000)
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8547 e03df62e-2008-0410-955e-edbf42e46eb7

src/modules/m_cloaking.cpp

index 7209c27146f52a48e7f67f8cf7362ae9e4baaec9..c0edf21a97694dac99ca19bbdb5fb53211902ec2 100644 (file)
@@ -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);
        }