Changeset 660 in code for trunk/upstream.go


Ignore:
Timestamp:
Nov 2, 2021, 5:25:43 PM (4 years ago)
Author:
contact
Message:

Add support for WHOX

This adds support for WHOX, without bothering about flags and mask2
because Solanum and Ergo [1] don't support it either.

The motivation is to allow clients to reliably query account names.

It's not possible to use WHOX tokens to route replies to the right
client, because RPL_ENDOFWHO doesn't contain it.

[1]: https://github.com/ergochat/ergo/pull/1184

Closes: https://todo.sr.ht/~emersion/soju/135

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r655 r660  
    14531453        case irc.RPL_YOURHOST, irc.RPL_CREATED:
    14541454                // Ignore
     1455        case rpl_whospcrpl:
     1456                // Not supported in multi-upstream mode, forward as-is
     1457                uc.forEachDownstream(func(dc *downstreamConn) {
     1458                        dc.SendMessage(msg)
     1459                })
    14551460        case irc.RPL_LUSERCLIENT, irc.RPL_LUSEROP, irc.RPL_LUSERUNKNOWN, irc.RPL_LUSERCHANNELS, irc.RPL_LUSERME:
    14561461                fallthrough
Note: See TracChangeset for help on using the changeset viewer.