3
0
mirror of https://github.com/ergochat/ergo.git synced 2024-12-26 12:42:50 +01:00

Hide +i users from WHO * queries.

Fixes #990.
This commit is contained in:
Alex Jaspersen 2020-05-07 00:16:22 +00:00
parent 2ef87598c4
commit 1ef41d6020

View File

@ -2637,7 +2637,9 @@ func whoHandler(server *Server, client *Client, msg ircmsg.IrcMessage, rb *Respo
}
} else {
for mclient := range server.clients.FindAll(mask) {
client.rplWhoReply(nil, mclient, rb)
if !mclient.HasMode(modes.Invisible) || isOper {
client.rplWhoReply(nil, mclient, rb)
}
}
}