From 31aeffb7496126e5606952579395c5a0fa526ff0 Mon Sep 17 00:00:00 2001 From: brain Date: Sat, 10 Nov 2007 20:34:30 +0000 Subject: Fix owines crashes here too git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8561 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_cloaking.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'src/modules/m_cloaking.cpp') diff --git a/src/modules/m_cloaking.cpp b/src/modules/m_cloaking.cpp index 43a0f5693..c2f721945 100644 --- a/src/modules/m_cloaking.cpp +++ b/src/modules/m_cloaking.cpp @@ -319,16 +319,12 @@ class ModuleCloaking : public Module ModuleCloaking(InspIRCd* Me) : Module(Me) { - /* Create new mode handler object */ - cu = new CloakUser(ServerInstance, this, HashModule); - /* Attempt to locate the md5 service provider, bail if we can't find it */ HashModule = ServerInstance->Modules->Find("m_md5.so"); if (!HashModule) - { - delete cu; throw ModuleException("Can't find m_md5.so. Please load m_md5.so before m_cloaking.so."); - } + + cu = new CloakUser(ServerInstance, this, HashModule); try { -- cgit v1.3.1-10-gc9f91