Fix /whois for mixed case nicks.

This commit is contained in:
Thomas Habets 2014-06-08 02:28:55 +02:00
parent de49f5eeba
commit 54d2fcb9cb

View File

@ -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