aboutsummaryrefslogtreecommitdiffstats
path: root/src/modules/m_oper_hash.cpp
diff options
context:
space:
mode:
authorGravatar brain2006-12-05 21:28:29 +0000
committerGravatar brain2006-12-05 21:28:29 +0000
commit7adaae1083b75bf4581e8301e610332dfc5aa6f5 (patch)
treedf1014be94e9c8e4781d7b2839b489bb12034e7a /src/modules/m_oper_hash.cpp
parentComments comments! (diff)
downloadinspircd++-7adaae1083b75bf4581e8301e610332dfc5aa6f5.tar.gz
inspircd++-7adaae1083b75bf4581e8301e610332dfc5aa6f5.tar.bz2
inspircd++-7adaae1083b75bf4581e8301e610332dfc5aa6f5.zip
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
Diffstat (limited to 'src/modules/m_oper_hash.cpp')
-rw-r--r--src/modules/m_oper_hash.cpp4
1 files changed, 4 insertions, 0 deletions
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);