summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-23 20:46:23 +0000
committerAdam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864>2010-05-23 20:46:23 +0000
commit543e0d770a99bfa2e289bf9e78806fd09a14a294 (patch)
tree4d3a2688c35d9021e8cc865d0c5312ad3b5e52ac /include/modules.h
parentd5f036017510dad134fd9c8d471135f774f1fe17 (diff)
Fixed bug #1165, fixed soem missing tables in /os sqlsync. Also added support for saving cs_levels
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2979 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h10
1 files changed, 9 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h
index aad816d39..e17c8b272 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -893,6 +893,14 @@ class CoreExport Module
*/
virtual void OnAccessClear(ChannelInfo *ci, User *u) { }
+ /** Called when a level for a channel is changed
+ * @param u The user changing the level
+ * @param ci The channel the level was changed on
+ * @param pos The level position, can be -1 for resetting levels
+ * @param what The new level
+ */
+ virtual void OnLevelChange(User *u, ChannelInfo *ci, int pos, int what) { }
+
/** Called when a channel is dropped
* @param chname The channel name
*/
@@ -1156,7 +1164,7 @@ enum Implementation
/* ChanServ */
I_OnChanServHelp, I_OnChanForbidden, I_OnChanSuspend, I_OnChanDrop, I_OnPreChanExpire, I_OnChanExpire, I_OnAccessAdd, I_OnAccessChange,
- I_OnAccessDel, I_OnAccessClear, I_OnChanRegistered, I_OnChanUnsuspend, I_OnDelChan, I_OnChannelCreate,
+ I_OnAccessDel, I_OnAccessClear, I_OnLevelChange, I_OnChanRegistered, I_OnChanUnsuspend, I_OnDelChan, I_OnChannelCreate,
I_OnChannelDelete, I_OnAkickAdd, I_OnAkickDel,
/* BotServ */