Changeset 276 in code for trunk/user.go


Ignore:
Timestamp:
Apr 29, 2020, 5:34:44 PM (5 years ago)
Author:
contact
Message:

Add support for away-notify

This makes use of cap-notify to dynamically advertise support for
away-notify. away-notify is advertised to downstream connections if all
upstreams support it.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user.go

    r267 r276  
    256256
    257257                        uc.forEachDownstream(func(dc *downstreamConn) {
     258                                dc.updateSupportedCaps()
    258259                                sendServiceNOTICE(dc, fmt.Sprintf("connected to %s", uc.network.GetName()))
    259260                        })
     
    271272
    272273                        uc.endPendingLISTs(true)
     274
     275                        uc.forEachDownstream(func(dc *downstreamConn) {
     276                                dc.updateSupportedCaps()
     277                        })
    273278
    274279                        if uc.network.lastError == nil {
     
    315320                                uc.updateAway()
    316321                        })
     322
     323                        dc.updateSupportedCaps()
    317324                case eventDownstreamDisconnected:
    318325                        dc := e.dc
Note: See TracChangeset for help on using the changeset viewer.