]> jfr.im git - irc/quakenet/newserv.git/blobdiff - newsearch/ns-cidr.c
CHANSERV: fix issue where chanserv_relay doesn't wait for db to be loaded before...
[irc/quakenet/newserv.git] / newsearch / ns-cidr.c
index 99d12dcc964467e2159c319ec23485566470bb96..8572a4bfe5e84a2d04abf396c11743a7cc9a9361 100644 (file)
@@ -71,7 +71,7 @@ void *cidr_exe(searchCtx *ctx, struct searchNode *thenode, void *theinput) {
   nick *np = (nick *)theinput;
   struct cidr_localdata *c = thenode->localdata;
 
-  if(!ipmask_check(&np->p_ipaddr, &c->ip, c->bits))
+  if(!ipmask_check(&np->ipaddress, &c->ip, c->bits))
     return (void *)0;
 
   return (void *)1;