]> jfr.im git - irc/quakenet/newserv.git/commitdiff
sync trojascan change
authorPaul <redacted>
Tue, 29 Jul 2008 23:57:01 +0000 (00:57 +0100)
committerPaul <redacted>
Tue, 29 Jul 2008 23:57:01 +0000 (00:57 +0100)
trojanscan/trojanscan.c

index 597643db621d5457295eed337e27df74738d6282..dc5110d433cc59c671f489df83fbcd4d8d41949c 100644 (file)
@@ -1997,10 +1997,7 @@ static int trojanscan_hostcount(nick *sender, int hostmode, char *mask, int mask
   nick *np = NULL; /* sigh at warnings */
 
   if(hostmode)
-    for (j=0;j<NICKHASHSIZE;j++)
-      for (np=nicktable[j];np;np=np->next)
-        if (np->ipnode==sender->ipnode)
-          usercount++;
+    usercount = sender->ipnode->usercount;
 
   if(usercount > TROJANSCAN_MAX_HOST_GLINE) {
     hostmode = 0;