From: Alexander Barton Date: Fri, 8 Feb 2013 16:18:43 +0000 (+0100) Subject: "WHO ": use displayed hostname for matching X-Git-Tag: rel-21-rc1~143 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?p=ngircd-alex.git;a=commitdiff_plain;h=1e8b775a7a6d0c390e037bd73332072e7c510525 "WHO ": use displayed hostname for matching Use the currently "displayed hostname" (which can be cloaked!) for hostname matching, not the real one. In other words: don't display all the cloaked users on a specific real hostname! Thanks to DNS for reporting this issue. --- diff --git a/src/ngircd/irc-info.c b/src/ngircd/irc-info.c index e9c1ff53..f9c9b0d2 100644 --- a/src/ngircd/irc-info.c +++ b/src/ngircd/irc-info.c @@ -951,7 +951,7 @@ IRC_WHO_Mask(CLIENT *Client, char *Mask, bool OnlyOps) if (Mask) { /* Match pattern against user host/server/name/nick */ client_match = MatchCaseInsensitive(Mask, - Client_Hostname(c)); + Client_HostnameDisplayed(c)); if (!client_match) client_match = MatchCaseInsensitive(Mask, Client_ID(Client_Introducer(c)));