Merge pull request #101 from mcroydon/sanitize-nick-change

Display possibly truncated nickname when processing /nick commands.
This commit is contained in:
Andrey Petrov 2015-01-03 12:17:18 -08:00
commit fd74201f1f

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