Changeset 664 in code for trunk/upstream.go


Ignore:
Timestamp:
Nov 2, 2021, 10:33:17 PM (4 years ago)
Author:
contact
Message:

Make Network.Nick optional

Make Network.Nick optional, default to the user's username. This
will allow adding a global setting to set the nickname in the
future, just like we have for the real name.

References: https://todo.sr.ht/~emersion/soju/110

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/upstream.go

    r660 r664  
    16721672
    16731673func (uc *upstreamConn) register() {
    1674         uc.nick = uc.network.Nick
     1674        uc.nick = GetNick(&uc.user.User, &uc.network.Network)
    16751675        uc.nickCM = uc.network.casemap(uc.nick)
    16761676        uc.username = uc.network.GetUsername()
Note: See TracChangeset for help on using the changeset viewer.