Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • biboumi biboumi
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 100
    • Issues 100
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 12
    • Merge requests 12
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • louiz’
  • biboumibiboumi
  • Issues
  • #3253

Closed
Open
Created Apr 06, 2017 by ge0rg@ge0rg

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
Assignee
Assign to
Time tracking