From c708d7a3c0defba07171a70c68636d0b14abf590 Mon Sep 17 00:00:00 2001 From: brain Date: Fri, 9 Nov 2007 17:18:19 +0000 Subject: Same here, fix some minor memory leaks noticed by w00t git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8551 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_oper_hash.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/modules/m_oper_hash.cpp') diff --git a/src/modules/m_oper_hash.cpp b/src/modules/m_oper_hash.cpp index 75a5b695e..83166bc59 100644 --- a/src/modules/m_oper_hash.cpp +++ b/src/modules/m_oper_hash.cpp @@ -81,8 +81,6 @@ class ModuleOperHash : public Module Conf = NULL; OnRehash(NULL,""); - ServerInstance->Modules->UseInterface("HashRequest"); - /* Find all modules which implement the interface 'HashRequest' */ modulelist* ml = ServerInstance->Modules->FindInterface("HashRequest"); @@ -106,6 +104,8 @@ class ModuleOperHash : public Module throw ModuleException("I can't find any modules loaded which implement the HashRequest interface! You probably forgot to load a hashing module such as m_md5.so or m_sha256.so."); } + ServerInstance->Modules->UseInterface("HashRequest"); + mycommand = new CommandMkpasswd(ServerInstance, this, hashers, names); ServerInstance->AddCommand(mycommand); Implementation eventlist[] = { I_OnRehash, I_OnOperCompare }; -- cgit v1.2.3