From: Michael Poole Date: Fri, 1 Jun 2012 01:22:03 +0000 (-0400) Subject: Make gline.c's count_users() use real host for masked users. X-Git-Url: http://git.pk910.de/?p=ircu2.10.12-pk.git;a=commitdiff_plain;h=9f3569b567de6a5585cffde153885d1611f6c7b6;hp=dc84c4782beab4f9ed5e63f988fc9e4c73141da0 Make gline.c's count_users() use real host for masked users. This fixes SourceForge bug #2992886. --- diff --git a/ChangeLog b/ChangeLog index eb65436..9d8aa47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-05-07 Michael Poole + + * ircd/gline.c (count_users): Use the client's real host, rather + than their masked host, for +x users. + 2012-04-29 Michael Poole * ircd/crule.c (crule_connected): Fix logic for ignoring diff --git a/ircd/gline.c b/ircd/gline.c index d25dbfa..4f95526 100644 --- a/ircd/gline.c +++ b/ircd/gline.c @@ -371,7 +371,7 @@ count_users(char *mask, int flags) continue; ircd_snprintf(0, namebuf, sizeof(namebuf), "%s@%s", - cli_user(acptr)->username, cli_user(acptr)->host); + cli_user(acptr)->username, cli_user(acptr)->realhost); ircd_snprintf(0, ipbuf, sizeof(ipbuf), "%s@%s", cli_user(acptr)->username, ircd_ntoa(&cli_ip(acptr)));