summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--daemon.go1
1 files changed, 1 insertions, 0 deletions
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")