1
0
mirror of https://github.com/shazow/ssh-chat.git synced 2025-07-06 11:49:09 +03:00

Fix name coloring when users are renamed

This commit is contained in:
Andreas Renberg (IQAndreas) 2014-12-13 03:12:53 -06:00
parent ffe23fa91f
commit de3df4e1a4

@ -160,7 +160,7 @@ func (s *Server) Rename(client *Client, newName string) {
s.clients[client.Name] = client s.clients[client.Name] = client
s.lock.Unlock() s.lock.Unlock()
s.SysMsg("%s is now known as %s.", oldName, newName) s.SysMsg("%s is now known as %s.", ColorString(client.Color, oldName), ColorString(client.Color, newName))
} }
func (s *Server) List(prefix *string) []string { func (s *Server) List(prefix *string) []string {