]> jfr.im git - irc/quakenet/newserv.git/blobdiff - proxyscan/proxyscanhandlers.c
Merge
[irc/quakenet/newserv.git] / proxyscan / proxyscanhandlers.c
index 0d784305b9c1c27c6759c5974aaa9288486943e3..c1c70b4559c2984b39595a744560202b79a2fa3e 100644 (file)
@@ -15,8 +15,6 @@ void proxyscan_newnick(int hooknum, void *arg) {
   if (irc_in_addr_is_loopback(&np->p_ipaddr) || !irc_in_addr_is_ipv4(&np->p_ipaddr)) 
     return;
 
-  unsigned int ip = irc_in_addr_v4_to_int(&np->p_ipaddr);
-
   /* before we look at a normal host, see if we think we have an open proxy */
   if ((esp=findextrascan(np->ipnode))) {
     Error("proxyextra", ERR_ERROR, "connection from possible proxy %s", IPtostr(np->p_ipaddr)); 
@@ -78,7 +76,7 @@ void proxyscan_newnick(int hooknum, void *arg) {
     chp->glineid=0;
   } else {
     chp=addcleanhost(time(NULL));
-    np->ipnode->slots[ps_cache_ext] = chp;
+    np->ipnode->exts[ps_cache_ext] = chp;
     patricia_ref_prefix(np->ipnode->prefix);
 
     /* Queue up all the normal scans - on the normal queue */