mirror of
https://github.com/ergochat/ergo.git
synced 2024-12-31 15:12:34 +01:00
send the response line to NICK via the response buffer
This commit is contained in:
parent
bbd99b655a
commit
baa2c3b581
@ -62,8 +62,11 @@ func performNickChange(server *Server, client *Client, target *Client, newnick s
|
|||||||
if hadNick {
|
if hadNick {
|
||||||
target.server.snomasks.Send(sno.LocalNicks, fmt.Sprintf(ircfmt.Unescape("$%s$r changed nickname to %s"), whowas.nick, nickname))
|
target.server.snomasks.Send(sno.LocalNicks, fmt.Sprintf(ircfmt.Unescape("$%s$r changed nickname to %s"), whowas.nick, nickname))
|
||||||
target.server.whoWas.Append(whowas)
|
target.server.whoWas.Append(whowas)
|
||||||
|
rb.Add(nil, origNickMask, "NICK", nickname)
|
||||||
for friend := range target.Friends() {
|
for friend := range target.Friends() {
|
||||||
friend.Send(nil, origNickMask, "NICK", nickname)
|
if friend != client {
|
||||||
|
friend.Send(nil, origNickMask, "NICK", nickname)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user