From d555db40f4b39f10ad06c2449b42711c1e74105f Mon Sep 17 00:00:00 2001 From: aquanight Date: Sat, 2 Feb 2008 22:14:24 +0000 Subject: Make m_password_hash able to pick up hasher modules after it's loaded, meaning m_md5 and m_sha256 no longer have to be loaded before it. git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@8793 e03df62e-2008-0410-955e-edbf42e46eb7 --- include/modules.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'include') diff --git a/include/modules.h b/include/modules.h index 1cb3d36c5..e14b13c9b 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1824,6 +1824,14 @@ class CoreExport ModuleManager : public classbase */ modulelist* FindInterface(const std::string &InterfaceName); + /** Determine if a module has published the named interface. + * This could be used in, for example, OnLoadModule to pick up other modules that can be used. + * @param mod The module to check. + * @param InterfaceName the interface you want to check for + * @return True if the module provides the interface, false otherwise. + */ + bool ModuleHasInterface(Module* mod, const std::string& InterfaceName); + /** Given a pointer to a Module, return its filename * @param m The module pointer to identify * @return The module name or an empty string -- cgit v1.2.3