summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-15 17:37:25 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2007-03-15 17:37:25 +0000
commit38ca8be9a3881a3cb3cf6864e67b779ffbab6874 (patch)
tree2f611ef900a80433c881702fbc5ea4c7f1a5da98 /include/modules.h
parentd1dc60e83eef53da5368e18955acfa6c72be0374 (diff)
Add third parameter to OnUserQuit (quit reason for opers only) - bump api version
Add SetOperQuit and GetOperQuit methods to userrec Add OPERQUIT command to protocol - bump protocol version All this is to properly allow hidebans etc to work properly git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@6675 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/modules.h b/include/modules.h
index 97529e313..16495dad6 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 11017
+#define NATIVE_API_VERSION 11018
#ifdef IPV6
#define API_VERSION (NATIVE_API_VERSION * 10)
#else
@@ -471,9 +471,10 @@ class Module : public Extensible
* This event is only called when the user is fully registered when they quit. To catch
* raw disconnections, use the OnUserDisconnect method.
* @param user The user who is quitting
- * @param message The user's quit message
+ * @param message The user's quit message (as seen by non-opers)
+ * @param oper_message The user's quit message (as seen by opers)
*/
- virtual void OnUserQuit(userrec* user, const std::string &message);
+ virtual void OnUserQuit(userrec* user, const std::string &message, const std::string &oper_message);
/** Called whenever a user's socket is closed.
* The details of the exiting user are available to you in the parameter userrec *user