[LBBS-163] net_irc: Be able to relay IRC status codes back to email
Right now, if you use mod_irc_bouncer to send IRC messages from email, and the message doesn't go through, it's silently dropped with no feedback to the user:
[2026-05-01 00:29:28.234] DEBUG[1217988]: mod_irc_bouncer.c:499 bouncer_send: <= PRIVMSG foo/bar: Hey, what's up?
[2026-05-01 00:29:28.234] DEBUG[1217988]: net_irc.c:1772 privmsg: 0x562002cb2200 <= 401 InterLinked foo/bar: :No such nick/channel
Ideally, the 401 error should go back via the bouncer module and generate a bounce to the user by email.
The reason this isn't currently done is that net_irc writes to a client's file descriptor, and the dummy bouncer user doesn't have a file descriptor. The options are either to have one, to leverage the existing code, and be able to send anything received on it back to the user via email, or abstract away file descriptors from net_irc so that the bouncer user could more easily receive error messages and pass them along.
Comments
You must be logged in to leave a comment.