diff options
author | Sadie Powell <sadie@witchery.services> | 2024-02-27 13:38:20 +0000 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2024-02-27 13:40:47 +0000 |
commit | 9c80f9e34ef92e9344959ab81d20f2161b1e018c (patch) | |
tree | dab0cdec39c82b59d437df6758a7480526e5def7 /include/modules.h | |
parent | b5b3c744778ed0cbceb03f2f8dbbec33d2fd0e94 (diff) |
Replace OnChannelUnban with an IRCDProto function.
This was added for (and is only used for) for unbanning users on
UnrealIRCd which is an IRCd protocol function so it should be in
IRCDProto.
Diffstat (limited to 'include/modules.h')
-rw-r--r-- | include/modules.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/include/modules.h b/include/modules.h index 048e28f9f..c1fd8d5a9 100644 --- a/include/modules.h +++ b/include/modules.h @@ -1079,13 +1079,6 @@ public: * @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 @@ -1111,7 +1104,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_OnChannelUnban, + I_OnExpireTick, I_OnNickValidate, I_SIZE }; |