forked from External/ergo
include account-notify in the response batch
This commit is contained in:
parent
1ab06949bf
commit
855eb786af
1 changed files with 6 additions and 1 deletions
|
|
@ -102,7 +102,12 @@ func sendSuccessfulAccountAuth(client *Client, rb *ResponseBuffer, forNS, forSAS
|
||||||
|
|
||||||
// dispatch account-notify
|
// dispatch account-notify
|
||||||
for friend := range client.Friends(caps.AccountNotify) {
|
for friend := range client.Friends(caps.AccountNotify) {
|
||||||
friend.Send(nil, details.nickMask, "ACCOUNT", details.accountName)
|
if friend != rb.session {
|
||||||
|
friend.Send(nil, details.nickMask, "ACCOUNT", details.accountName)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if rb.session.capabilities.Has(caps.AccountNotify) {
|
||||||
|
rb.Add(nil, details.nickMask, "ACCOUNT", details.accountName)
|
||||||
}
|
}
|
||||||
|
|
||||||
client.server.snomasks.Send(sno.LocalAccounts, fmt.Sprintf(ircfmt.Unescape("Client $c[grey][$r%s$c[grey]] logged into account $c[grey][$r%s$c[grey]]"), details.nickMask, details.accountName))
|
client.server.snomasks.Send(sno.LocalAccounts, fmt.Sprintf(ircfmt.Unescape("Client $c[grey][$r%s$c[grey]] logged into account $c[grey][$r%s$c[grey]]"), details.nickMask, details.accountName))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue