Changeset 354 in code for trunk


Ignore:
Timestamp:
Jul 6, 2020, 4:13:40 PM (5 years ago)
Author:
contact
Message:

Strip network name from nickname when auto-saving network

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r347 r354  
    754754                }
    755755
     756                // Some clients only allow specifying the nickname (and use the
     757                // nickname as a username too). Strip the network name from the
     758                // nickname when auto-saving networks.
     759                nick, _, _ := unmarshalUsername(dc.nick)
     760
    756761                dc.logger.Printf("auto-saving network %q", dc.networkName)
    757762                var err error
    758763                network, err = dc.user.createNetwork(&Network{
    759764                        Addr: dc.networkName,
    760                         Nick: dc.nick,
     765                        Nick: nick,
    761766                })
    762767                if err != nil {
Note: See TracChangeset for help on using the changeset viewer.