From 59789bd36e341915b5538947fa53921e549c3f90 Mon Sep 17 00:00:00 2001 From: Matt Croydon Date: Sat, 3 Jan 2015 14:13:33 -0600 Subject: [PATCH] Make sure we display the processed and possibly truncated client name for /nick commands. Fixes #92. --- server.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server.go b/server.go index 181d2f7..9022f38 100644 --- a/server.go +++ b/server.go @@ -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