summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-25 04:12:21 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2009-10-25 04:12:21 +0000
commit338cb38ee833442c3fe4b1799fb1fefa9f80d3ef (patch)
tree9d259ed195549ef2fe2b7bc12aacefc1b7f97af4 /include/modules.h
parent8330009373183b42eb1562a73b1526dc12c0c575 (diff)
Added 4 new events for (un)setting modes on channels and users
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2583 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h25
1 files changed, 25 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h
index 4e02d3b97..7a122804d 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -923,6 +923,30 @@ class CoreExport Module
*/
virtual void OnInsertHostCore(HostCore *hc) { }
+ /** Called when a mode is set on a channel
+ * @param c The channel
+ * @param Name The mode name
+ */
+ virtual void OnChannelModeSet(Channel *c, ChannelModeName Name) { }
+
+ /** Called when a mode is unset on a channel
+ * @param c The channel
+ * @param Name The mode name
+ */
+ virtual void OnChannelModeUnset(Channel *c, ChannelModeName Name) { }
+
+ /** Called when a mode is set on a user
+ * @param u The user
+ * @param Name The mode name
+ */
+ virtual void OnUserModeSet(User *u, UserModeName Name) { }
+
+ /** Called when a mode is unset from a user
+ * @param u The user
+ * @param Name The mode name
+ */
+ virtual void OnUserModeUnset(User *u, UserModeName Name) { }
+
};
@@ -960,6 +984,7 @@ enum Implementation
I_OnPreDatabaseExpire, I_OnDatabaseExpire, I_OnPreRestart, I_OnRestart, I_OnPreShutdown, I_OnShutdown, I_OnSignal,
I_OnServerQuit, I_OnTopicUpdated,
I_OnEncrypt, I_OnEncryptInPlace, I_OnEncryptCheckLen, I_OnDecrypt, I_OnCheckPassword,
+ I_OnChannelModeSet, I_OnChannelModeUnset, I_OnUserModeSet, I_OnUserModeUnset,
I_END
};