From 6a3a32727d413a6a58365151d75976f9b5ac53c5 Mon Sep 17 00:00:00 2001 From: Michael Poole Date: Sat, 16 Apr 2005 15:32:43 +0000 Subject: [PATCH] Correctly match users against new IP-based G-lines. git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@1363 c9e4aea6-c8fd-4c43-8297-357d70d61c8c --- ChangeLog | 5 +++++ ircd/gline.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7d8df58..c6c6600 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-04-16 Michael Poole + + * ircd/gline.c (do_gline): Fix typo when activating IP-based + G-lines. + 2005-04-16 Michael Poole * ircd/class.c (free_class): Free default_umode field. diff --git a/ircd/gline.c b/ircd/gline.c index 5994e3e..92b5abe 100644 --- a/ircd/gline.c +++ b/ircd/gline.c @@ -225,9 +225,9 @@ do_gline(struct Client *cptr, struct Client *sptr, struct Gline *gline) if (GlineIsIpMask(gline)) { #ifdef DEBUGMODE char tbuf1[SOCKIPLEN], tbuf2[SOCKIPLEN]; - Debug((DEBUG_DEBUG,"IP gline: %s %s/%u", ircd_ntoa_r(tbuf1, &cli_ip(cptr)), ircd_ntoa_r(tbuf2, &gline->gl_addr), gline->gl_bits)); + Debug((DEBUG_DEBUG,"IP gline: %s %s/%u", ircd_ntoa_r(tbuf1, &cli_ip(acptr)), ircd_ntoa_r(tbuf2, &gline->gl_addr), gline->gl_bits)); #endif - if (!ipmask_check(&cli_ip(cptr), &gline->gl_addr, gline->gl_bits)) + if (!ipmask_check(&cli_ip(acptr), &gline->gl_addr, gline->gl_bits)) continue; } else { -- 2.20.1