Author: net <simms@LUCIDA.QC.CA>
authorPerry Lorier <isomer@undernet.org>
Mon, 30 Oct 2000 00:34:27 +0000 (00:34 +0000)
committerPerry Lorier <isomer@undernet.org>
Mon, 30 Oct 2000 00:34:27 +0000 (00:34 +0000)
Log message:

Fixed bugs that Isomer left

Testing Required:
Gline random people and check that the right people are disconnected

git-svn-id: file:///home/klmitch/undernet-ircu/undernet-ircu-svn/ircu2/trunk@302 c9e4aea6-c8fd-4c43-8297-357d70d61c8c

ChangeLog
ircd/gline.c

index b6ea829f6cab8d0ba850f5f1e9742c4c561dc34f..94cc930efa95444e16c0e2e9033a6e518b43f2de 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2000-10-30  net <simms@lucida.qc.ca>
+       
+       * ircd/gline.c: Fixed various bugs Isomer left behind.
+
 2000-10-26  Kevin L. Mitchell  <klmitch@mit.edu>
 
        * ircd/m_join.c (m_join): reply on attempt to join a BADCHANed
index bc18f39ce2c49eb9671364535e1122bab176f4f7..3de628d19ad5d13a975ef3e1ce6d61b36494ea28 100644 (file)
@@ -168,16 +168,16 @@ do_gline(struct Client *cptr, struct Client *sptr, struct Gline *gline)
        continue;
        
       if (acptr->user->username && 
-          match(gline->gl_user, acptr->user->username) == 0)
-          continue;
+          match (gline->gl_user, acptr->user->username) != 0)
+               continue;
           
       if (GlineIsIpMask(gline)) {
         Debug((DEBUG_DEBUG,"IP gline: %08x %08x/%i",cptr->ip.s_addr,gline->ipnum.s_addr,gline->bits));
-        if ((cptr->ip.s_addr & NETMASK(gline->bits)) != gline->ipnum.s_addr)
+        if ((acptr->ip.s_addr & NETMASK(gline->bits)) != gline->ipnum.s_addr)
           continue;
       }
       else {
-        if (match(gline->gl_host, acptr->sock_ip) != 0)
+        if (match(gline->gl_host, acptr->sockhost) != 0)
           continue;
       }