summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-22 14:24:29 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2004-05-22 14:24:29 +0000
commit085f7e07d460a2fef17a507f0cc0f9ccd4561724 (patch)
tree50d1b92cc3e96370d80681a6e0167a07de024f3a /include/modules.h
parent740b09e2aee345c6fde199986d8eab6e0db224e3 (diff)
Added OnUserPreInvite method for use with +V etc
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@817 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h
index 698060681..978a9a4a6 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -248,6 +248,13 @@ class Module : public classbase
*/
virtual void OnWhois(userrec* source, userrec* dest);
+ /** Called whenever a user is about to invite another user into a channel, before any processing is done.
+ * Returning any nonzero value from this function stops the process immediately, causing no
+ * output to be sent to the user by the core. If you do this you must produce your own numerics,
+ * notices etc. This is useful for modules which may want to filter invites to channels.
+ */
+ virtual int OnUserPreInvite(userrec* source,userrec* dest,chanrec* channel);
+
/** Called whenever a user is about to PRIVMSG A user or a channel, before any processing is done.
* Returning any nonzero value from this function stops the process immediately, causing no
* output to be sent to the user by the core. If you do this you must produce your own numerics,