Changeset 543 in code for trunk


Ignore:
Timestamp:
May 26, 2021, 9:04:33 AM (4 years ago)
Author:
contact
Message:

Broadcast BOUNCER notifications to all downstream connections

We weren't sending them to downstreams which weren't bound to a
network.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user.go

    r542 r543  
    523523                                dc.updateSupportedCaps()
    524524
     525                                if !dc.caps["soju.im/bouncer-networks"] {
     526                                        sendServiceNOTICE(dc, fmt.Sprintf("connected to %s", uc.network.GetName()))
     527                                }
     528
     529                                dc.updateNick()
     530                                dc.updateRealname()
     531                        })
     532                        u.forEachDownstream(func(dc *downstreamConn) {
    525533                                if dc.caps["soju.im/bouncer-networks-notify"] {
    526534                                        dc.SendMessage(&irc.Message{
     
    529537                                                Params:  []string{"NETWORK", netIDStr, "status=connected"},
    530538                                        })
    531                                 } else if !dc.caps["soju.im/bouncer-networks"] {
    532                                         sendServiceNOTICE(dc, fmt.Sprintf("connected to %s", uc.network.GetName()))
    533539                                }
    534 
    535                                 dc.updateNick()
    536                                 dc.updateRealname()
    537540                        })
    538541                        uc.network.lastError = nil
     
    662665        uc.forEachDownstream(func(dc *downstreamConn) {
    663666                dc.updateSupportedCaps()
    664 
     667        })
     668        u.forEachDownstream(func(dc *downstreamConn) {
    665669                if dc.caps["soju.im/bouncer-networks-notify"] {
    666670                        dc.SendMessage(&irc.Message{
Note: See TracChangeset for help on using the changeset viewer.