diff options
| author | Adam <Adam@anope.org> | 2011-08-06 17:33:59 -0400 |
|---|---|---|
| committer | Adam <Adam@anope.org> | 2011-08-06 17:33:59 -0400 |
| commit | a6dd65f916adbdd4edf6494a2d3ab2d94484189f (patch) | |
| tree | bb0a25159930a991ad355f2bb58604bbe1e65fcb /include/modules.h | |
| parent | 0448e386dee2d6a591e4a67586b5ad059127a8c3 (diff) | |
Fixed suepradmin
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 baf437ff8..7fd477b32 100644 --- a/include/modules.h +++ b/include/modules.h @@ -741,6 +741,13 @@ class CoreExport Module : public Extensible */ virtual void OnFindChan(const Anope::string &chname) { } + /** Checks if access has the channel privilege 'priv'. + * @param access THe access struct + * @param priv The privilege being checked for + * @return EVENT_ALLOW for yes, EVENT_STOP to stop all processing + */ + virtual EventReturn OnCheckPriv(ChanAccess *access, ChannelAccess priv) { return EVENT_CONTINUE; } + /** Called when a nick is dropped * @param u The user dropping the nick * @param na The nick @@ -1025,7 +1032,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_OnDelChan, I_OnChannelCreate, I_OnChannelDelete, I_OnAkickAdd, I_OnAkickDel, I_OnCheckKick, - I_OnChanInfo, I_OnFindChan, + I_OnChanInfo, I_OnFindChan, I_OnCheckPriv, /* BotServ */ I_OnBotJoin, I_OnBotKick, I_OnBotCreate, I_OnBotChange, I_OnBotDelete, I_OnBotAssign, I_OnBotUnAssign, |
