From 7adaae1083b75bf4581e8301e610332dfc5aa6f5 Mon Sep 17 00:00:00 2001 From: brain Date: Tue, 5 Dec 2006 21:28:29 +0000 Subject: Throw if we cant find any modules that implement our interface git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@5876 e03df62e-2008-0410-955e-edbf42e46eb7 --- src/modules/m_oper_hash.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/modules') diff --git a/src/modules/m_oper_hash.cpp b/src/modules/m_oper_hash.cpp index ee4d78a7f..f87f46be2 100644 --- a/src/modules/m_oper_hash.cpp +++ b/src/modules/m_oper_hash.cpp @@ -108,6 +108,10 @@ class ModuleOperHash : public Module ServerInstance->Log(DEBUG, "Found HashRequest interface: '%s' -> '%08x'", name.c_str(), *m); } } + else + { + 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."); + } mycommand = new cmd_mkpasswd(ServerInstance, this, hashers, names); ServerInstance->AddCommand(mycommand); -- cgit v1.2.3