Changeset 559 in code for trunk/upstream.go
- Timestamp:
- Jun 14, 2021, 7:44:38 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/upstream.go
r553 r559 22 22 // requested when supported. 23 23 var permanentUpstreamCaps = map[string]bool{ 24 "account-tag": true, 24 25 "away-notify": true, 25 26 "batch": true, … … 95 96 batches map[string]batch 96 97 away bool 98 account string 97 99 nextLabelID uint64 98 100 … … 535 537 }) 536 538 case irc.RPL_LOGGEDIN: 537 var account string 538 if err := parseMessageParams(msg, nil, nil, &account); err != nil { 539 return err 540 } 541 uc.logger.Printf("logged in with account %q", account) 539 if err := parseMessageParams(msg, nil, nil, &uc.account); err != nil { 540 return err 541 } 542 uc.logger.Printf("logged in with account %q", uc.account) 542 543 case irc.RPL_LOGGEDOUT: 544 uc.account = "" 543 545 uc.logger.Printf("logged out") 544 546 case irc.ERR_NICKLOCKED, irc.RPL_SASLSUCCESS, irc.ERR_SASLFAIL, irc.ERR_SASLTOOLONG, irc.ERR_SASLABORTED:
Note:
See TracChangeset
for help on using the changeset viewer.