Changeset 296 in code for trunk/user.go


Ignore:
Timestamp:
May 27, 2020, 9:42:38 PM (5 years ago)
Author:
delthas
Message:

Update downstream nicks in single-server mode and after NICK

Previously, the downstream nick was never changed, even when the
downstream sent a NICK message or was in single-server mode with a
different nick.

This adds support for updating the downstream nick in the following
cases:

  • when a downstream sends NICK
  • additionally, in single-server mode:
    • when a downstream connects and its single network is connected
    • when an upstream connects
    • when an upstream sends NICK
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/user.go

    r284 r296  
    299299                                dc.updateSupportedCaps()
    300300                                sendServiceNOTICE(dc, fmt.Sprintf("connected to %s", uc.network.GetName()))
     301
     302                                dc.updateNick()
    301303                        })
    302304                        uc.network.lastError = nil
Note: See TracChangeset for help on using the changeset viewer.