send the response line to NICK via the response buffer

This commit is contained in:
Shivaram Lingamneni 2019-02-20 22:20:23 -05:00
parent bbd99b655a
commit baa2c3b581
1 changed files with 4 additions and 1 deletions

View File

@ -62,10 +62,13 @@ func performNickChange(server *Server, client *Client, target *Client, newnick s
if hadNick {
target.server.snomasks.Send(sno.LocalNicks, fmt.Sprintf(ircfmt.Unescape("$%s$r changed nickname to %s"), whowas.nick, nickname))
target.server.whoWas.Append(whowas)
rb.Add(nil, origNickMask, "NICK", nickname)
for friend := range target.Friends() {
if friend != client {
friend.Send(nil, origNickMask, "NICK", nickname)
}
}
}
if target.Registered() {
client.server.monitorManager.AlertAbout(target, true)