summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-22 15:10:11 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-22 15:10:11 +0000
commit30b22d2b48ecdeac906c69fb28d6df2ef782f792 (patch)
treef0ee3f773cabcd79b34a440910c364e49e090bea /include/modules.h
parent56aff87a0c71c2b5af26dcc754391307594572b1 (diff)
Added OnOperCompare function to override strcmp in password check for /oper
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1161 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h
index 1e0fcf936..57a7a1e04 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -619,6 +619,14 @@ class Module : public classbase
* may be able to use for pre-determined purposes (e.g. the results of an SQL query, etc).
*/
virtual char* OnRequest(Request* request);
+
+ /** Called whenever an oper password is to be compared to what a user has input.
+ * The password field (from the config file) is in 'password' and is to be compared against
+ * 'input'. This method allows for encryption of oper passwords and much more besides.
+ * You should return a nonzero value if you want to allow the comparison or zero if you wish
+ * to do nothing.
+ */
+ virtual int OnOperCompare(std::string password, std::string input);
};