Make sure we display the processed and possibly truncated client name for /nick commands. Fixes #92.

This commit is contained in:
Matt Croydon 2015-01-03 14:13:33 -06:00
parent 3508e7cffd
commit 59789bd36e

View File

@ -242,7 +242,7 @@ func (s *Server) Rename(client *Client, newName string) {
s.clients[strings.ToLower(client.Name)] = client
s.Unlock()
}
s.SysMsg("%s is now known as %s.", ColorString(client.Color, oldName), ColorString(client.Color, newName))
s.SysMsg("%s is now known as %s.", ColorString(client.Color, oldName), ColorString(client.Color, client.Name))
}
// List lists the clients with the given prefix