- Timestamp:
- Nov 21, 2021, 10:00:57 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/downstream.go
r722 r723 1039 1039 1040 1040 func (dc *downstreamConn) updateAccount() { 1041 uc := dc.upstream() 1042 if uc == nil || uc.account == dc.account || !dc.caps["sasl"] { 1041 var account string 1042 if dc.network == nil { 1043 account = dc.user.Username 1044 } else if uc := dc.upstream(); uc != nil { 1045 account = uc.account 1046 } else { 1043 1047 return 1044 1048 } 1045 1049 1046 if uc.account != "" { 1050 if dc.account == account || !dc.caps["sasl"] { 1051 return 1052 } 1053 1054 if account != "" { 1047 1055 dc.SendMessage(&irc.Message{ 1048 1056 Prefix: dc.srv.prefix(), 1049 1057 Command: irc.RPL_LOGGEDIN, 1050 Params: []string{dc.nick, dc.prefix().String(), uc.account, "You are logged in as " + uc.account},1058 Params: []string{dc.nick, dc.prefix().String(), account, "You are logged in as " + account}, 1051 1059 }) 1052 1060 } else { … … 1058 1066 } 1059 1067 1060 dc.account = uc.account1068 dc.account = account 1061 1069 } 1062 1070
Note:
See TracChangeset
for help on using the changeset viewer.