diff options
author | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-05 21:28:29 +0000 |
---|---|---|
committer | brain <brain@e03df62e-2008-0410-955e-edbf42e46eb7> | 2006-12-05 21:28:29 +0000 |
commit | 7adaae1083b75bf4581e8301e610332dfc5aa6f5 (patch) | |
tree | df1014be94e9c8e4781d7b2839b489bb12034e7a /src/modules | |
parent | eb1a3b40d256378bd875c96fa421bf1b0cd96bca (diff) |
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')
-rw-r--r-- | src/modules/m_oper_hash.cpp | 4 |
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); |