3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-11-10 22:19:31 +01:00

Make 'nick' snomask look nicer

This commit is contained in:
Daniel Oaks 2017-06-10 17:07:44 -06:00
parent 34863a6320
commit 55d8eb5dce

View File

@ -437,7 +437,7 @@ func (client *Client) ChangeNickname(nickname string) error {
err := client.server.clients.Replace(client.nick, nickname, client)
if err == nil {
client.server.logger.Debug("nick", fmt.Sprintf("%s changed nickname to %s", client.nick, nickname))
client.server.snomasks.Send(sno.LocalNicks, fmt.Sprintf(ircfmt.Unescape("Nick changed $c[grey][$r%s$c[grey]] to [$r%s$c[grey]]"), client.nick, nickname))
client.server.snomasks.Send(sno.LocalNicks, fmt.Sprintf(ircfmt.Unescape("$%s$r changed nickname to %s"), client.nick, nickname))
client.server.whoWas.Append(client)
client.nick = nickname
client.updateNickMask()