]> jfr.im git - irc/quakenet/newserv.git/blobdiff - trusts/trusts.c
CHANSERV: tell user when they can't attempts to auth any more, and drop max attempts...
[irc/quakenet/newserv.git] / trusts / trusts.c
index ab0f5c8b8a1307caf261de29fe0c7026281aa462..3dcc8d199190cdefa35f67795575b9dc5984195d 100644 (file)
@@ -69,13 +69,13 @@ static void whoisfn(int hooknum, void *arg) {
   triggerhook(HOOK_CONTROL_WHOISREPLY, message);
 
   if (th->maxpernode > 0) {
-    snprintf(message, sizeof(message), "Node      : %s", CIDRtostr(np->p_ipaddr, th->nodebits));
+    snprintf(message, sizeof(message), "Node      : %s", CIDRtostr(np->ipaddress, th->nodebits));
     triggerhook(HOOK_CONTROL_WHOISREPLY, message);
 
     patricia_node_t *node;
     int usercount = 0;
 
-    node = refnode(iptree, &(np->p_ipaddr), th->nodebits);
+    node = refnode(iptree, &(np->ipaddress), th->nodebits);
     usercount = node->usercount;
     derefnode(iptree, node);