summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-07 19:04:27 -0400
committerAdam <Adam@anope.org>2011-08-07 19:04:27 -0400
commitc6741d3765d0a8dbf34e80a34573333e45b5ec6b (patch)
tree552e5b4f2e6f2819ed7686b3c9aa4b2fce5382d4 /include/modules.h
parent25e3408ff654a9cb8ac15af41e3e015cbe85a444 (diff)
Always reset the levels of newly created channels, fixed DetermineLevel matching ACCESS_INVALID levels, and added in a disabled config option for levels
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h
index 7fd477b32..df4fd0323 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -692,6 +692,11 @@ class CoreExport Module : public Extensible
*/
virtual void OnChanUnsuspend(ChannelInfo *ci) { }
+ /** Called when a channel is being created, for any reason
+ * @param ci The channel
+ */
+ virtual void OnCreateChan(ChannelInfo *ci) { }
+
/** Called when a channel is being deleted, for any reason
* @param ci The channel
*/
@@ -1030,7 +1035,7 @@ enum Implementation
/* ChanServ */
I_OnChanForbidden, I_OnChanSuspend, I_OnChanDrop, I_OnPreChanExpire, I_OnChanExpire, I_OnAccessAdd,
- I_OnAccessDel, I_OnAccessClear, I_OnLevelChange, I_OnChanRegistered, I_OnChanUnsuspend, I_OnDelChan, I_OnChannelCreate,
+ I_OnAccessDel, I_OnAccessClear, I_OnLevelChange, I_OnChanRegistered, I_OnChanUnsuspend, I_OnCreateChan, I_OnDelChan, I_OnChannelCreate,
I_OnChannelDelete, I_OnAkickAdd, I_OnAkickDel, I_OnCheckKick,
I_OnChanInfo, I_OnFindChan, I_OnCheckPriv,