diff options
| author | Alexander Barton <alex@barton.de> | 2013-02-08 17:18:43 +0100 |
|---|---|---|
| committer | Alexander Barton <alex@barton.de> | 2013-02-08 17:18:43 +0100 |
| commit | 1e8b775a7a6d0c390e037bd73332072e7c510525 (patch) | |
| tree | ed9b755297eaca38ceae18ea06d9cedfd776dd59 /src | |
| parent | f16d230530424f93541b4ca36e2686ddfb76834a (diff) | |
| download | ngircd-1e8b775a7a6d0c390e037bd73332072e7c510525.tar.gz ngircd-1e8b775a7a6d0c390e037bd73332072e7c510525.zip | |
"WHO <hostmask>": 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 <dns@rbose.org> for reporting this issue.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ngircd/irc-info.c | 2 |
1 files changed, 1 insertions, 1 deletions
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))); |