Changeset 271 in code for trunk/service.go


Ignore:
Timestamp:
Apr 28, 2020, 2:27:53 PM (5 years ago)
Author:
contact
Message:

Abbreviate net status service reply

Don't print the nickname if it's the same as the downstream
connection's.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/service.go

    r270 r271  
    247247                var details string
    248248                if uc := net.upstream(); uc != nil {
    249                         statuses = append(statuses, "connected as "+uc.nick)
     249                        if dc.nick != uc.nick {
     250                                statuses = append(statuses, "connected as "+uc.nick)
     251                        } else {
     252                                statuses = append(statuses, "connected")
     253                        }
    250254                        details = fmt.Sprintf("%v channels", len(uc.channels))
    251255                } else {
Note: See TracChangeset for help on using the changeset viewer.