ergochat / ergo

A modern IRC server (daemon/ircd) written in Go.
https://ergo.chat/
MIT License
2.23k stars 178 forks source link

Request server message when always-on connects? #2040

Closed MystaraTheGreat closed 1 year ago

MystaraTheGreat commented 1 year ago

Is there any possibility of adding some kind of server message that gets transmitted (perhaps controllable by a user mode and/or channel mode) when an always on user connects?

slingamn commented 1 year ago

This should produce a CONNECT snomask as usual, if enabled (as an operator) with MODE self +s c, or as an auto-mode in the config:

https://github.com/ergochat/ergo/blob/abb38ce8a1afb8fc08291ef0bb4415099bf3e884/default.yaml#L680

slingamn commented 1 year ago

We added a separate sno category (+d) for always-on disconnects in #1720.

MystaraTheGreat commented 1 year ago

I was thinking more for regular users than for opers. It might be nice to know when a user has become 'active'.

slingamn commented 1 year ago

auto-away plus https://ircv3.net/specs/extensions/away-notify.html should provide this. The default/recommended setting for auto-away is opt-in:

https://github.com/ergochat/ergo/blob/abb38ce8a1afb8fc08291ef0bb4415099bf3e884/default.yaml#L539-L540

but you can change it to opt-out.

MystaraTheGreat commented 1 year ago

Yeah, I guess that works. Frustratingly, my client doesn't seem to have an option to actually SHOW the away messages even though it receives them.