From c6741d3765d0a8dbf34e80a34573333e45b5ec6b Mon Sep 17 00:00:00 2001 From: Adam Date: Sun, 7 Aug 2011 19:04:27 -0400 Subject: Always reset the levels of newly created channels, fixed DetermineLevel matching ACCESS_INVALID levels, and added in a disabled config option for levels --- include/modules.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'include') 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, -- cgit