--HG--
branch : shroudtrusts
*/
if(hooknum == HOOK_TRUSTS_NEWNICK) {
*/
if(hooknum == HOOK_TRUSTS_NEWNICK) {
- patricia_node_t *head, *node;
- head = refnode(iptree, ip, th->nodebits);
+ node = refnode(iptree, ip, th->nodebits);
nodecount = node->usercount;
nodecount = node->usercount;
- derefnode(iptree, head);
+ derefnode(iptree, node);
if(th->maxpernode && nodecount + usercountadjustment > th->maxpernode) {
controlwall(NO_OPER, NL_CLONING, "Hard connection limit exceeded on subnet: %s (group: %s): %d connected, %d max.", CIDRtostr(*ip, th->nodebits), tg->name->content, nodecount + usercountadjustment, th->maxpernode);
if(th->maxpernode && nodecount + usercountadjustment > th->maxpernode) {
controlwall(NO_OPER, NL_CLONING, "Hard connection limit exceeded on subnet: %s (group: %s): %d connected, %d max.", CIDRtostr(*ip, th->nodebits), tg->name->content, nodecount + usercountadjustment, th->maxpernode);