From f93640a33547bad6537d2f490e1123c76720f7ff Mon Sep 17 00:00:00 2001 From: Sergey Matveev Date: Thu, 5 Nov 2015 17:04:52 +0300 Subject: [PATCH] Force lowercase nicknames --- daemon.go | 1 + 1 file changed, 1 insertion(+) diff --git a/daemon.go b/daemon.go index 0896add..b795a0c 100644 --- a/daemon.go +++ b/daemon.go @@ -162,6 +162,7 @@ func ClientRegister(client *Client, cmd string, cols []string) { nickname := cols[1] // Compatibility with some clients prepending colons to nickname nickname = strings.TrimPrefix(nickname, ":") + nickname = strings.ToLower(nickname) for existingClient := range clients { if *existingClient.nickname == nickname { client.ReplyParts("433", "*", nickname, "Nickname is already in use")