]> jfr.im git - irc/quakenet/newserv.git/commitdiff
fix chanserv for iptrie
authorPaul <redacted>
Mon, 28 May 2007 11:52:17 +0000 (11:52 +0000)
committerPaul <redacted>
Mon, 28 May 2007 11:52:17 +0000 (11:52 +0000)
chanserv/chanservschedule.c

index 4f5dc807ec75093d942e640a31443e6c011e9c4d..c935d548918c49908079a5b9afc2768efe50d22a 100644 (file)
@@ -15,17 +15,17 @@ void chanservdgline(void* arg) {
   for (nl=rup->nicks; nl; nl=nl->next) {
     for (i=0, ucount=0; i<NICKHASHSIZE; i++)
       for (np=nicktable[i];np;np=np->next)
-        if (!ircd_strcmp(np->ident, nl->np->ident) && np->ipaddress==nl->np->ipaddress)
+        if (!ircd_strcmp(np->ident, nl->np->ident) && np->ipnode==nl->np->ipnode)
           ucount++;
     
     if (ucount >= MAXGLINEUSERS)
       chanservwallmessage("Delayed GLINE \"*!%s@%s\" (account %s) would hit %d users, aborting.", 
-        nl->np->ident, IPtostr(nl->np->ipaddress), rup->username, ucount);
+        nl->np->ident, IPtostr(nl->np->p_ipaddr), rup->username, ucount);
     else {
       irc_send("%s GL * +*!%s@%s 3600 :%s\r\n", mynumeric->content, nl->np->ident, 
-        IPtostr(nl->np->ipaddress), rup->suspendreason->content);
+        IPtostr(nl->np->p_ipaddr), rup->suspendreason->content);
       chanservwallmessage("Delayed GLINE \"*!%s@%s\" (authed as %s) expires in 60 minute/s (hit %d user%s) (reason: %s)", 
-        nl->np->ident, IPtostr(nl->np->ipaddress), rup->username, ucount, ucount==1?"":"s", rup->suspendreason->content);
+        nl->np->ident, IPtostr(nl->np->p_ipaddr), rup->username, ucount, ucount==1?"":"s", rup->suspendreason->content);
     }
   }
 }