diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/modules.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/include/modules.h b/include/modules.h index 9efb47670..120f17153 100644 --- a/include/modules.h +++ b/include/modules.h @@ -641,6 +641,15 @@ class Module : public classbase */ virtual void OnGlobalConnect(userrec* user); + /** Called whenever a ban is added to a channel's list. + * Return a non-zero value to 'eat' the mode change and prevent the ban from being added. + */ + virtual int OnAddBan(userrec* source, chanrec* channel,std::string banmask); + + /** Called whenever a ban is removed from a channel's list. + * Return a non-zero value to 'eat' the mode change and prevent the ban from being removed. + */ + virtual int OnDelBan(userrec* source, chanrec* channel,std::string banmask); }; |