enableAutoFix = atob(chanfixConfig->Require("enableAutoFix")->second) ;
enableChanFix = atob(chanfixConfig->Require("enableChanFix")->second) ;
enableChannelBlocking = atob(chanfixConfig->Require("enableChannelBlocking")->second) ;
+stopAutoFixOnOp = atob(chanfixConfig->Require("stopAutoFixOnOp")->second);
+stopManualFixOnOp = atob(chanfixConfig->Require("stopManualFixOnOp")->second);
version = atoi((chanfixConfig->Require("version")->second).c_str()) ;
useBurstToFix = atob(chanfixConfig->Require("useBurstToFix")->second) ;
numServers = atoi((chanfixConfig->Require("numServers")->second).c_str()) ;
// If the channel is being fixed and the op is done by a user,
// cancel the fix, as there is an awake op
if (theUser) {
- if (isBeingAutoFixed(theChan))
- removeFromAutoQ(theChan);
- if (isBeingChanFixed(theChan))
- removeFromManQ(theChan);
+ if (stopAutoFixOnOp) {
+ if (isBeingAutoFixed(theChan))
+ removeFromAutoQ(theChan);
+ }
+ if (stopManualFixOnOp) {
+ if (isBeingChanFixed(theChan))
+ removeFromManQ(theChan);
+ }
}
} else {
// Someone is deopped
# Can channels be blocked by admins?
enableChannelBlocking = true
+# Should manual fixes stop if an opped client by chanfix ops another
+# client
+stopManualFixOnOp = false
+
+# Should auto fixes stop if an opped client by chanfix ops another
+# client
+stopAutoFixOnOp = true
+
# ---------------------------------------------------------------------
# Network settings