summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authoraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-02 22:14:24 +0000
committeraquanight <aquanight@e03df62e-2008-0410-955e-edbf42e46eb7>2008-02-02 22:14:24 +0000
commitd555db40f4b39f10ad06c2449b42711c1e74105f (patch)
tree36928004553bab7826b8053a349f1bde7265ceeb /include
parent942d25e282e5c0d3442a154d8db8869944ac58eb (diff)
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
Diffstat (limited to 'include')
-rw-r--r--include/modules.h8
1 files changed, 8 insertions, 0 deletions
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