]> jfr.im git - irc/quakenet/newserv.git/blobdiff - chanserv/chancmds/permban.c
CHANSERV: HACK: tempban/permban limits are now 20x normal if founder is an IRC operator
[irc/quakenet/newserv.git] / chanserv / chancmds / permban.c
index f96401076c985441e6b204b3a76fe9483ac59482..1cb5285c23fceb100ea7c6f61cab6abd6bca23a6 100644 (file)
@@ -85,9 +85,13 @@ int csc_dopermban(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) {