diff options
author | k4bek4be <34816207+k4bek4be@users.noreply.github.com> | 2022-01-10 16:50:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-10 15:50:17 +0000 |
commit | 9b0c7929d9fcb158420d1333369bf20e52981f09 (patch) | |
tree | 79091ddbced05193111cc9d8a0f3673dc4716fa6 /include/modules.h | |
parent | d895a3aa017f02ceeafddfd54432abb43b9497cf (diff) |
Multiple updates for unreal4 protocol (#285)
* Parse PROTOCTL PREFIX and PROTOCTL USERMODES
* Add several previously unhandled modes
* Fix incorrect SJOIN prefix handling
* Enable message tags sending from ircd
* Add timedban matcher
* Add operclass matcher
* Store all client and channel moddata.
* Call unreal's internal unban on /cs unban
* Check for ~a:0 ban
* Add country ban matcher
* Use +B umode for services bots
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 a9d4a43f5..3da6219bb 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1100,6 +1100,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 @@ -1125,7 +1132,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 }; |