From 5413b3ae52e4f1c1d1ec7e875dd6e2ce74a3b998 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 238b7c8..c01dbde 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")