mirror of
https://github.com/osmarks/ngircd.git
synced 2024-12-12 01:40:27 +00:00
Hide +i users on "WHOIS <pattern>"
Let's behave like most(?) other IRC daemons (at least ircd2.11) and hide all +i users when WHOIS is used with a pattern. Otherwise privacy of this users is not guaranteed and the +i mode a bit useless ... Reported by Cahata on #ngircd, thanks!
This commit is contained in:
parent
63ad3b9acd
commit
335ae4f0d0
@ -1265,6 +1265,8 @@ IRC_WHOIS( CLIENT *Client, REQUEST *Req )
|
||||
|
||||
if (Client_Type(c) != CLIENT_USER)
|
||||
continue;
|
||||
if (Client_HasMode(c, 'i'))
|
||||
continue;
|
||||
if (!MatchCaseInsensitive(query, Client_ID(c)))
|
||||
continue;
|
||||
if (!IRC_WHOIS_SendReply(Client, from, c))
|
||||
|
Loading…
Reference in New Issue
Block a user