diff options
| author | Adam <Adam@anope.org> | 2011-08-14 18:50:22 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-08-14 18:50:22 -0400 |
| commit | 960c339a4ccb1be522ec800d9143d30db8ac7001 (patch) | |
| tree | 6cf9bde695f498f5c2db5b58f97c9733e085a3e7 /include/modules.h | |
| parent | fddb2304c6a05559b4d2c550885646dc2e77e875 (diff) | |
Brought back the old 1.7 behavior of a level -1 matching all users and 0 matching all identified users
Diffstat (limited to 'include/modules.h')
| -rw-r--r-- | include/modules.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/include/modules.h b/include/modules.h index 2592b5622..e16b8150b 100644 --- a/include/modules.h +++ b/include/modules.h @@ -753,6 +753,13 @@ class CoreExport Module : public Extensible */ virtual EventReturn OnCheckPriv(ChanAccess *access, ChannelAccess priv) { return EVENT_CONTINUE; } + /** Check whether an access group has a privilege + * @param group The group + * @param priv The privilege + * @return MOD_ALLOW to allow, MOD_STOP to stop + */ + virtual EventReturn OnGroupCheckPriv(const AccessGroup *group, ChannelAccess priv) { return EVENT_CONTINUE; } + /** Called when a nick is dropped * @param u The user dropping the nick * @param na The nick @@ -1037,7 +1044,7 @@ enum Implementation I_OnChanForbidden, I_OnChanSuspend, I_OnChanDrop, I_OnPreChanExpire, I_OnChanExpire, I_OnAccessAdd, 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, + I_OnChanInfo, I_OnFindChan, I_OnCheckPriv, I_OnGroupCheckPriv, /* BotServ */ I_OnBotJoin, I_OnBotKick, I_OnBotCreate, I_OnBotChange, I_OnBotDelete, I_OnBotAssign, I_OnBotUnAssign, |
