matrix-org / matrix-appservice-irc

Node.js IRC bridge for Matrix
Apache License 2.0
465 stars 151 forks source link

Add a DebugAPI to warn users that they will be idle kicked #1571

Closed Half-Shot closed 2 years ago

Half-Shot commented 2 years ago

Partial fix to https://github.com/matrix-org/matrix-appservice-irc/issues/1397 (doesn't allow opt out, but does warn you now)

This PR will allow services to advance-notify users that they are going to be idle kicked. Like user reaping, this is called from the DebugAPI. This also includes a dummy command "!active" to let the bridge know that you are active. I left this in just so the user has something tangible to do, but any messages sent to the bridge will reset your timeout anyway.