From: Gunnar Beutner Date: Mon, 17 Jun 2013 13:40:44 +0000 (+0200) Subject: Fixed maxpernode policy enforcement. X-Git-Url: https://jfr.im/git/irc/quakenet/newserv.git/commitdiff_plain/ee3036473d32ce0d65dc7f36ec2669c55a5bf27a Fixed maxpernode policy enforcement. --HG-- branch : shroudtrusts --- diff --git a/trusts/trusts_policy.c b/trusts/trusts_policy.c index 9c5ed4fb..3f0aaa13 100644 --- a/trusts/trusts_policy.c +++ b/trusts/trusts_policy.c @@ -21,8 +21,7 @@ static void policycheck(int hooknum, void *arg) { tg = th->group; if(th->maxpernode && np->ipnode->usercount > th->maxpernode) { - if(np->ipnode->usercount > 5) - controlwall(NO_OPER, NL_TRUSTS, "Hard connection limit exceeded on IP: %s (group: %s) %d connected, %d max.", IPtostr(np->p_ipaddr), tg->name->content, np->ipnode->usercount, th->maxpernode); + controlwall(NO_OPER, NL_TRUSTS, "Hard connection limit exceeded on IP: %s (group: %s) %d connected, %d max.", IPtostr(np->p_ipaddr), tg->name->content, np->ipnode->usercount, th->maxpernode); return; }