|
@@ -348,9 +348,9 @@ func dispatchAwayNotify(client *Client, isAway bool, awayMessage string) {
|
348
|
348
|
details := client.Details()
|
349
|
349
|
for session := range client.Friends(caps.AwayNotify) {
|
350
|
350
|
if isAway {
|
351
|
|
- session.sendFromClientInternal(false, time.Time{}, "", details.nickMask, details.account, nil, "AWAY", awayMessage)
|
|
351
|
+ session.sendFromClientInternal(false, time.Time{}, "", details.nickMask, details.accountName, nil, "AWAY", awayMessage)
|
352
|
352
|
} else {
|
353
|
|
- session.sendFromClientInternal(false, time.Time{}, "", details.nickMask, details.account, nil, "AWAY")
|
|
353
|
+ session.sendFromClientInternal(false, time.Time{}, "", details.nickMask, details.accountName, nil, "AWAY")
|
354
|
354
|
}
|
355
|
355
|
}
|
356
|
356
|
}
|
|
@@ -2568,7 +2568,7 @@ func setnameHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *R
|
2568
|
2568
|
// alert friends
|
2569
|
2569
|
now := time.Now().UTC()
|
2570
|
2570
|
for session := range client.Friends(caps.SetName) {
|
2571
|
|
- session.sendFromClientInternal(false, now, "", details.nickMask, details.account, nil, "SETNAME", details.realname)
|
|
2571
|
+ session.sendFromClientInternal(false, now, "", details.nickMask, details.accountName, nil, "SETNAME", details.realname)
|
2572
|
2572
|
}
|
2573
|
2573
|
|
2574
|
2574
|
return false
|