]> jfr.im git - irc/quakenet/newserv.git/commitdiff
Fixed maxpernode policy enforcement.
authorGunnar Beutner <redacted>
Mon, 17 Jun 2013 13:40:44 +0000 (15:40 +0200)
committerGunnar Beutner <redacted>
Mon, 17 Jun 2013 13:40:44 +0000 (15:40 +0200)
--HG--
branch : shroudtrusts

trusts/trusts_policy.c

index 9c5ed4fb0705f255ec2bd7c227e3ee62149048aa..3f0aaa132f4cad0ffea7e1d3405fc8b8bb87f413 100644 (file)
@@ -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;
   }