Closed jesopo closed 1 year ago
This sort of tag sounds reasonable but the "[#channel] "
on the front of the message feels not-that-needed. Most of the time, if users join a channel and instantly get a message from a bot they're gonna recognise it (and most other channel-specific bot dms are gonna happen in response to commands they actively run, so no worries about them noticing what it's from).
The prefix is useful as the client can use it as a hint for choosing the window (e.g. WeeChat shows such notices as PvNotice in the channel window, like a whisper). Without it, clients either dump notices in the server window (where they can get lost) or in the foreground window (which can be the wrong channel entirely).
I realize that ctctags are more suitable but the prefix is in active use now, e.g. by Atheme's Chanserv and the aforementioned WeeChat.
Mm. Yeah thinking about it sounds fine, esp as something that works right now everywhere.
It seems this prolly already exists out there by way of cnotice/cprivmsg, if we can just use this then cool: https://tools.ietf.org/html/draft-hardy-irc-isupport-00#section-4.6
that would prohibit non-op bots from using it and it seems to not include a channel context - just allows an op to message the user without flood controls.
ah, I missed the bit about that being restricted to ops/etc. if that's true then that too, bleh. fairfair
Alternatively, this could be a server tag, and the server could add the prefix if the client doesn't support the extension.
on review of this, I think I'd prefer this be moved to a numeric instead of a NOTICE
. I don't know if clients are good at redirecting unknown notices to channel buffers though.
This has been standardized with https://github.com/ircv3/ircv3-specifications/pull/498
Simple premise - imagine a bot that greets users via
NOTICE
when they join a channel. This is currently often done byNOTICE user :[#channel] hello!
but I think we could do something a lot better than that.My proposition:
@+channel-context=#channel NOTICE user :[#channel] hello!
- it'd be backwards compatible and be a lot more concretely related to a channel.