Changeset 289 in code for trunk/downstream.go


Ignore:
Timestamp:
May 1, 2020, 7:56:40 PM (5 years ago)
Author:
delthas
Message:

Fix not properly marshaling self in single-server mode

In single-server mode, we don't need to add a /network suffix when
marshaling, but we still need to replace our nick with the downstream
nick.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/downstream.go

    r285 r289  
    156156// user.
    157157func (dc *downstreamConn) marshalEntity(net *network, name string) string {
     158        if isOurNick(net, name) {
     159                return dc.nick
     160        }
    158161        if dc.network != nil {
    159162                if dc.network != net {
     
    161164                }
    162165                return name
    163         }
    164         if isOurNick(net, name) {
    165                 return dc.nick
    166166        }
    167167        return name + "/" + net.GetName()
Note: See TracChangeset for help on using the changeset viewer.