summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-04-14 17:39:01 -0500
committerAdam <Adam@anope.org>2013-04-14 17:39:01 -0500
commitf08dbced60d59de28d13efee2e19097e0b42f4c7 (patch)
treeb3aae56d92e788e7ca386258ac81ba8a259a8c48 /include/modules.h
parentbaabc91ead367a9461bce20dfa1a0e6d44043358 (diff)
Allow assigning service bots via /invite
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h
index 20d27b0ab..e9846f609 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -815,6 +815,13 @@ class CoreExport Module : public Extensible
*/
virtual void OnUserAway(User *u, const Anope::string &message) { }
+ /** Called when a user invites one of our users to a channel
+ * @param source The user doing the inviting
+ * @param c The channel the user is inviting to
+ * @param targ The user being invited
+ */
+ virtual void OnInvite(User *source, Channel *c, User *targ) { }
+
/** Called when a vhost is deleted
* @param na The nickalias of the vhost
*/
@@ -1018,7 +1025,7 @@ enum Implementation
/* Users */
I_OnUserConnect, I_OnUserNickChange, I_OnUserQuit, I_OnPreUserLogoff, I_OnPostUserLogoff, I_OnPreJoinChannel,
- I_OnJoinChannel, I_OnPrePartChannel, I_OnPartChannel, I_OnLeaveChannel, I_OnFingerprint, I_OnUserAway,
+ I_OnJoinChannel, I_OnPrePartChannel, I_OnPartChannel, I_OnLeaveChannel, I_OnFingerprint, I_OnUserAway, I_OnInvite,
/* OperServ */
I_OnDefconLevel, I_OnAddAkill, I_OnDelAkill, I_OnExceptionAdd, I_OnExceptionDel,