From 54d2fcb9cbab1e5693b83b9c506bc0aca74dd90c Mon Sep 17 00:00:00 2001 From: Thomas Habets Date: Sun, 8 Jun 2014 02:28:55 +0200 Subject: [PATCH] Fix /whois for mixed case nicks. --- daemon.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon.go b/daemon.go index be9a84e..2cb2153 100644 --- a/daemon.go +++ b/daemon.go @@ -101,7 +101,7 @@ func (daemon *Daemon) SendWhois(client *Client, nicknames []string) { nickname = strings.ToLower(nickname) found := false for c := range daemon.clients { - if c.nickname != nickname { + if strings.ToLower(c.nickname) != nickname { continue } found = true