summaryrefslogtreecommitdiff
path: root/include/modules.h
diff options
context:
space:
mode:
authorSadie Powell <sadie@witchery.services>2022-01-12 22:05:59 +0000
committerSadie Powell <sadie@witchery.services>2022-01-12 22:08:35 +0000
commita631028660d527f509c3b028cfa5f2903a125077 (patch)
tree830ba6644bb312af32847db654bfb842ed44a7cd /include/modules.h
parent4e5fc9797c2ea285e855f808dc65694d1cdba358 (diff)
parent04257b9d6ab0fa1a63ade1d2ad0edc2d08eb74ce (diff)
Merge branch '2.0' into 2.1.
Diffstat (limited to 'include/modules.h')
-rw-r--r--include/modules.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/include/modules.h b/include/modules.h
index 4bf579a1f..f7956ecab 100644
--- a/include/modules.h
+++ b/include/modules.h
@@ -1,6 +1,6 @@
/* Modular support
*
- * (C) 2003-2021 Anope Team
+ * (C) 2003-2022 Anope Team
* Contact us at team@anope.org
*
* Please read COPYING and README for further details.
@@ -1098,6 +1098,13 @@ class CoreExport Module : public Extensible
* @return EVENT_STOP to force the user off of the nick
*/
virtual EventReturn OnNickValidate(User *u, NickAlias *na) { throw NotImplementedException(); }
+
+ /** Called when a certain user has to be unbanned on a certain channel.
+ * May be used to send protocol-specific messages.
+ * @param u The user to be unbanned
+ * @param c The channel that user has to be unbanned on
+ */
+ virtual void OnChannelUnban(User *u, ChannelInfo *ci) { throw NotImplementedException(); }
};
enum Implementation
@@ -1123,7 +1130,7 @@ enum Implementation
I_OnPrivmsg, I_OnLog, I_OnLogMessage, I_OnDnsRequest, I_OnCheckModes, I_OnChannelSync, I_OnSetCorrectModes,
I_OnSerializeCheck, I_OnSerializableConstruct, I_OnSerializableDestruct, I_OnSerializableUpdate,
I_OnSerializeTypeCreate, I_OnSetChannelOption, I_OnSetNickOption, I_OnMessage, I_OnCanSet, I_OnCheckDelete,
- I_OnExpireTick, I_OnNickValidate,
+ I_OnExpireTick, I_OnNickValidate, I_OnChannelUnban,
I_SIZE
};