]> 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>
Fri, 8 Feb 2013 16:18:43 +0000 (17:18 +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.

src/ngircd/irc-info.c

index e9c1ff532ae7a4d4420d9e972f0f8e3904036f33..f9c9b0d2423c97b2ed8e2bf596a5f56fa1efa3ca 100644 (file)
@@ -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)));