summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-01 20:53:20 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-01-01 20:53:20 +0000
commit42d5b9571eff06b0c33093dc9118c29f9603fd2b (patch)
tree97429d79e59c3f14d5fea75e2a25524af2bd842a /include
parent8a0a8ce160dbc623350b80f8f6e06afb9c7a1f86 (diff)
Fix to allow for OnRehash to know what user initiated the rehash
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6207 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/modules.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h
index 9928ad326..8c4b55a95 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -75,7 +75,7 @@ enum MessageType {
* ipv4 servers, so this value will be ten times as
* high on ipv6 servers.
*/
-#define NATIVE_API_VERSION 11009
+#define NATIVE_API_VERSION 11010
#ifdef IPV6
#define API_VERSION (NATIVE_API_VERSION * 10)
#else
@@ -518,9 +518,11 @@ class Module : public Extensible
* system. You should use it to reload any files so that your module keeps in step with the
* rest of the application. If a parameter is given, the core has done nothing. The module
* receiving the event can decide if this parameter has any relevence to it.
+ * @param user The user performing the rehash, if any -- if this is server initiated, the
+ * value of this variable will be NULL.
* @param parameter The (optional) parameter given to REHASH from the user.
*/
- virtual void OnRehash(const std::string &parameter);
+ virtual void OnRehash(userrec* user, const std::string &parameter);
/** Called when a raw command is transmitted or received.
* This method is the lowest level of handler available to a module. It will be called with raw