summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-30 02:55:55 +0000
committerbrain <brain@e03df62e-2008-0410-955e-edbf42e46eb7>2005-04-30 02:55:55 +0000
commitc12ec889bb600626ecbd0cb903564f639ee55700 (patch)
treed0f7e0833f6aa48f4404f75335ca7c7fb4cad37e /include
parente190c2ae913682fa5da83ccf53722289c3e7d77c (diff)
Added OnAddBan and OnDelBan module api calls, and fixed glitch which required them in m_timedbans module
git-svn-id: http://svn.inspircd.org/repository/trunk/inspircd@1267 e03df62e-2008-0410-955e-edbf42e46eb7
Diffstat (limited to 'include')
-rw-r--r--include/modules.h9
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);
};