Changeset 520 in code for trunk


Ignore:
Timestamp:
May 20, 2021, 9:13:14 AM (4 years ago)
Author:
contact
Message:

Relay self-WHO/WHOIS in single-upstream mode

In multi-upstream mode, we can't relay WHO/WHOIS messages for the
current user, because we can't decide which upstream server the
message should be relayed to.

In single-upstream server, we do know which upstream server to use,
so we can just blindly relay the message.

This allows users to send a self-WHO/WHOIS to check their cloak and
other information.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r516 r520  
    13831383                                })
    13841384                        } else {
     1385                                // TODO: only do this in multi-upstream mode
    13851386                                dc.SendMessage(&irc.Message{
    13861387                                        Prefix:  dc.srv.prefix(),
     
    15581559                entityCM := casemapASCII(entity)
    15591560
    1560                 if entityCM == dc.nickCM {
     1561                if dc.network == nil && entityCM == dc.nickCM {
    15611562                        // TODO: support AWAY (H/G) in self WHO reply
    15621563                        dc.SendMessage(&irc.Message{
     
    16231624                }
    16241625
    1625                 if casemapASCII(mask) == dc.nickCM {
     1626                if dc.network == nil && casemapASCII(mask) == dc.nickCM {
    16261627                        dc.SendMessage(&irc.Message{
    16271628                                Prefix:  dc.srv.prefix(),
Note: See TracChangeset for help on using the changeset viewer.