]> Cypherpunks.ru repositories - goircd.git/commitdiff
Fix /whois for mixed case nicks.
authorThomas Habets <thomas@habets.se>
Sun, 8 Jun 2014 00:28:55 +0000 (02:28 +0200)
committerThomas Habets <thomas@habets.se>
Sun, 8 Jun 2014 00:28:55 +0000 (02:28 +0200)
daemon.go

index be9a84e51c33b8ee0e6f6878dceda35bdb7ec1f8..2cb215390b1ce0bcada4cd0f63d302834f40697f 100644 (file)
--- 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 {
                nickname = strings.ToLower(nickname)
                found := false
                for c := range daemon.clients {
-                       if c.nickname != nickname {
+                       if strings.ToLower(c.nickname) != nickname {
                                continue
                        }
                        found = true
                                continue
                        }
                        found = true