X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/6b1291558189ca85a4235bdef48d50a892253227..9e5f0d797a0957172a9fd7b79f20115bc6fdcbd7:/trusts/trusts.c diff --git a/trusts/trusts.c b/trusts/trusts.c index ab0f5c8b..c34974bb 100644 --- a/trusts/trusts.c +++ b/trusts/trusts.c @@ -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); @@ -129,7 +129,7 @@ int registertgext(const char *name) { return -1; } - for(i=0;i