mirror of
https://github.com/shazow/ssh-chat.git
synced 2025-04-14 16:17:17 +03:00
Merge pull request #101 from mcroydon/sanitize-nick-change
Display possibly truncated nickname when processing /nick commands.
This commit is contained in:
commit
fd74201f1f
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user