Changeset 156 in code for trunk/downstream.go


Ignore:
Timestamp:
Mar 25, 2020, 10:21:14 PM (5 years ago)
Author:
delthas
Message:

Route NAMES, WHO, WHOIS replies to the requesting downstream

Using labeled-response, the replies to several commands such as NAMES,
WHO, WHOIS can be routed back to a specific downstream, rather than
being broadcast to all downstreams.

For example, after this commit, if the server supports labeled-response,
if a downstream requests the NAMES or WHO or WHOIS of a channel, the
replies of the upstream will only be sent back to that downstream, and
the other downstreams won't receive these messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r154 r156  
    10051005                        } else {
    10061006                                // NAMES on a channel we have not joined, ask upstream
    1007                                 uc.SendMessage(&irc.Message{
     1007                                uc.SendMessageLabeled(dc, &irc.Message{
    10081008                                        Command: "NAMES",
    10091009                                        Params:  []string{upstreamChannel},
     
    10521052                }
    10531053
    1054                 uc.SendMessage(&irc.Message{
     1054                uc.SendMessageLabeled(dc, &irc.Message{
    10551055                        Command: "WHO",
    10561056                        Params:  params,
     
    11091109                }
    11101110
    1111                 uc.SendMessage(&irc.Message{
     1111                uc.SendMessageLabeled(dc, &irc.Message{
    11121112                        Command: "WHOIS",
    11131113                        Params:  params,
Note: See TracChangeset for help on using the changeset viewer.