]> jfr.im git - irc/quakenet/newserv.git/blobdiff - chanserv/chancmds/tempban.c
CHANSERV: HACK: tempban/permban limits are now 20x normal if founder is an IRC operator
[irc/quakenet/newserv.git] / chanserv / chancmds / tempban.c
index 4019948d0fc3ad31b4fc56408fedebd7777ca09e..ec409f0805841991d8224a9eb2ac29510d27935c 100644 (file)
@@ -97,9 +97,13 @@ int csc_dotempban(void *source, int cargc, char **cargv) {
   }
 
   if(count >= MAXBANS) {
-    freechanban(b);
-    chanservstdmessage(sender, QM_TOOMANYBANS);
-    return CMD_ERROR;
+    /* HACK: oper founder channels have 20x the ban limit */
+    reguser *founder=findreguserbyID(rcp->founder);
+    if(!founder || !UHasOperPriv(founder) || count >= MAXBANS * 20) {
+      freechanban(b);
+      chanservstdmessage(sender, QM_TOOMANYBANS);
+      return CMD_ERROR;
+    }
   }
 
   if(toreplace) {