Fix /whois for mixed case nicks.
This commit is contained in:
parent
de49f5eeba
commit
54d2fcb9cb
@ -101,7 +101,7 @@ func (daemon *Daemon) SendWhois(client *Client, nicknames []string) {
|
|||||||
nickname = strings.ToLower(nickname)
|
nickname = strings.ToLower(nickname)
|
||||||
found := false
|
found := false
|
||||||
for c := range daemon.clients {
|
for c := range daemon.clients {
|
||||||
if c.nickname != nickname {
|
if strings.ToLower(c.nickname) != nickname {
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
found = true
|
found = true
|
||||||
|
Loading…
Reference in New Issue
Block a user