aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_cloaking.cpp
diff options
context:
space:
mode:
authorGravatar brain2007-11-09 17:03:19 +0000
committerGravatar brain2007-11-09 17:03:19 +0000
commit9d8d996031392304d030ddc9d569e03660be4915 (patch)
treefbc0b3e3f6865155018fe35643bec30c3e0f3ccc /src/modules/m_cloaking.cpp
parentSecond (not mergable) part of #441 fix (diff)
Make AddMode the last thing the constructor does.
git-svn-id: http://svn.inspircd.org/repository/branches/1_1_stable@8546 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'src/modules/m_cloaking.cpp')
-rw-r--r--src/modules/m_cloaking.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp
index ad7a7e337..348d45775 100644
--- a/src/modules/m_cloaking.cpp
+++ b/src/modules/m_cloaking.cpp
@@ -324,11 +324,10 @@ class ModuleCloaking : public Module
/* Create new mode handler object */
cu = new CloakUser(ServerInstance, this, HashModule);
- /* Register it with the core */
+ OnRehash(NULL,"");
+
if (!ServerInstance->AddMode(cu, 'x'))
throw ModuleException("Could not add new modes!");
-
- OnRehash(NULL,"");
}
virtual ~ModuleCloaking()