]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Finish the T bug fix.
authorChris Porter <redacted>
Sat, 12 Jan 2008 18:21:28 +0000 (18:21 +0000)
committerChris Porter <redacted>
Sat, 12 Jan 2008 18:21:28 +0000 (18:21 +0000)
trojanscan/trojanscan.c
trojanscan/trojanscan.h

index a08c2e77ff56cde881dc33a5be78c1c7926127d6..f68304646873dcce8adf5472f2cc5555b230e04b 100644 (file)
@@ -1971,13 +1971,14 @@ void trojanscan_phrasematch(channel *chp, nick *sender, trojanscan_phrases *phra
   if (worm->monitor) {
     glining = 0;
     usercount = -1;
-  } else if (worm->glinehost && (sender->ipnode->usercount <= TROJANSCAN_MAX_HOST_GLINE)) {
+  } else if (worm->glinehost) {
     snprintf(glinemask, sizeof(glinemask) - 1, "*@%s", IPtostr(sender->p_ipaddr));
     for (j=0;j<NICKHASHSIZE;j++)
       for (np=nicktable[j];np;np=np->next)
         if (np->ipnode==sender->ipnode)
           usercount++;
-  } else if (worm->glineuser || (worm->glinehost && sender->ipnode->usercount > TROJANSCAN_MAX_HOST_GLINE)) {
+  }
+  if (worm->glineuser || (worm->glinehost && usercount > TROJANSCAN_MAX_HOST_GLINE)) {
     userbit = sender->ident;
 /*
     if(userbit[0] == '~')
index cfe9856824b0fbf3eceec46615fb7d6f7b022459..3ff26be62c7cc00ff013375ebcea79f955bbd3b4 100644 (file)
@@ -18,7 +18,7 @@
 #include <ctype.h>
 #include <strings.h>
 
-#define TROJANSCAN_VERSION "2.67"
+#define TROJANSCAN_VERSION "2.68"
 
 #define TROJANSCAN_MAX_HOST_GLINE   5