X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/blobdiff_plain/77795ca2bc49fffc64708c244844239f4f276863..dfa6a3e6e932b35cf31f2cba948d45c41a703ac6:/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