mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-19 10:17:41 +03:00
Fix name coloring when users are renamed
This commit is contained in:
parent
ffe23fa91f
commit
de3df4e1a4
@ -160,7 +160,7 @@ func (s *Server) Rename(client *Client, newName string) {
|
||||
s.clients[client.Name] = client
|
||||
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user