Convert IRC server generated away notice (301) into Chat State or presence
When messaging an "away" IRC user, the IRC server will send this response on each message:
IRCSERVER: Gone, for more info use WHOIS ircuser ircuser
This is converted into a message from the IRC server JID to all my client resources, generating some unwanted notifications:
2017-04-06 10:09:14 [DEBUG]: src/irc/irc_client.cpp:342: IRC RECEIVING: (irc.server) IrcMessage[301]{Ge0rG[m]}{ircuser}{Gone, for more info use WHOIS ircuser ircuser}(from: IRCSERVER)
2017-04-06 10:09:14 [INFO]: src/irc/irc_client.cpp:370: No handler for command 301, forwarding the arguments to the user
2017-04-06 10:09:14 [DEBUG]: src/xmpp/xmpp_component.cpp:78: XMPP SENDING: <message from='irc.server@irc.transport' to='georg@yax.im/poezio' type='chat'><html xmlns='http://jabber.org/protocol/xhtml-im'><body xmlns='http://www.w3.org/1999/xhtml'><span style='color:green;'>IRCSERVER</span>: ircuser Gone, for more info use WHOIS ircuser ircuser</body></html><body>IRCSERVER: ircuser Gone, for more info use WHOIS ircuser ircuser</body></message>
2017-04-06 10:09:14 [DEBUG]: src/xmpp/xmpp_component.cpp:78: XMPP SENDING: <message from='irc.server@irc.transport' to='georg@yax.im/yaxim' type='chat'><html xmlns='http://jabber.org/protocol/xhtml-im'><body xmlns='http://www.w3.org/1999/xhtml'><span style='color:green;'>IRCSERVER</span>: ircuser Gone, for more info use WHOIS ircuser ircuser</body></html><body>IRCSERVER: ircuser Gone, for more info use WHOIS ircuser ircuser</body></message>
Please create a handler for 301 messages that either converts them into a directed away
presence, or something like Chat States, or at least a message that originates from the ircuser JID and not from the server.
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information