]> arthur.barton.de Git - ngircd.git/commitdiff
"WHO <hostmask>": use displayed hostname for matching
authorAlexander Barton <alex@barton.de>
Fri, 8 Feb 2013 16:18:43 +0000 (17:18 +0100)
committerAlexander Barton <alex@barton.de>
Wed, 13 Feb 2013 21:12:09 +0000 (22:12 +0100)
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 <dns@rbose.org> for reporting this issue.
(cherry picked from commit 1e8b775a7a6d0c390e037bd73332072e7c510525)

src/ngircd/irc-info.c

index 57d6e1a2e327afbe5261d180bda6caac727d4e9a..d9eae14d9aa720f5e6bfc0dd86a983dede53cde4 100644 (file)
@@ -950,7 +950,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)));