-
-
Notifications
You must be signed in to change notification settings - Fork 425
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add OnKickClient() forward #1749
base: master
Are you sure you want to change the base?
Conversation
This patch allow ROOT flag to call votes even if a delay is set. Its nice to have the possibility to set a delay betweens votes to limit public votes. Generally, we do this when we have lots of admins. But as a ROOT flag this limit shall no be set.
This patch allow ROOT flag to call votes even if a delay is set. Its nice to have the possibility to set a delay betweens votes to limit public votes. Generally, we do this when we have lots of admins. But as a ROOT flag this limit shall no be set.
This forward allow kick to be detected (ie catch kick reason) or block kicking process.
This forward allow kick to be detected (ie catch kick reason) or block kicking process.
Use KickClient instead of kickid
I think it is possible to hook the common |
Or even more common, can use |
@Wend4r I have used the same design as BanClient (ie banid with forwards OnBanClient, OnBanIdentity, OnRemoveBan)
@Wend4r For CBaseClient::Disconnect(), we dont want to have the disconnect reason! Here we want to detect a kick and if needed catch the reason when a player/bot/tv etc is kicked Regards |
@GabenManPowered In this regard, I suggest adding an reason argument to |
From the kick follows disconnecting with the kick reason |
I think its fine for the moment to used the same design as BanClient. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sounds good to me, can this request be approved please? Will be very usefull...
I apologize for the delay on this. Functionally this looks ok, but what's the use-case? In what situation would you need to deny a kick? We have immunity rules that should take care of this so I'm coming to this from a place of ignorance. |
I dont have a reason to block a kick, but it would be wonderful to have at least a fwd for when it gets called instead of rolling my own impl |
I'm also against the idea to block kicks on the fly, as stated by Kyle the permission system more than cover this aspect. But I agree with sappho, having a notification forwards for kicks could have its benefits, but I can't think of any right now. |
Can you make this a Post notification for now? |
This forward allow kick to be detected (ie catch kick reason) or block kicking process.