mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-07-03 12:14:29 +02:00
Make sure we display the processed and possibly truncated client name for /nick commands. Fixes #92.
This commit is contained in:
parent
3508e7cffd
commit
59789bd36e
@ -242,7 +242,7 @@ func (s *Server) Rename(client *Client, newName string) {
|
|||||||
s.clients[strings.ToLower(client.Name)] = client
|
s.clients[strings.ToLower(client.Name)] = client
|
||||||
s.Unlock()
|
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
|
// List lists the clients with the given prefix
|
||||||
|
Loading…
x
Reference in New Issue
Block a user