]> git.donarmstrong.com Git - infobot.git/blobdiff - src/DynaConfig.pl
really support negative booleans and and return -1 for IsChanConf() when they are...
[infobot.git] / src / DynaConfig.pl
index e1cf464a1a68960ac691cf6b98e0002aa5639923..ea94e5b0a566f44a0d2d72b7cc7b26e4f5ad56a4 100644 (file)
@@ -271,10 +271,8 @@ sub readChanFile {
            $chanconf{$chan}{$1} = 1;
 
        } elsif (/^[\s\t]+\-(\S+)$/) {          # bool, false.
-           &DEBUG("deprecated support of negative options.") unless ($cache{negative});
            # although this is supported in run-time configuration.
-           $cache{negative} = 1;
-#          $chanconf{$chan}{$1} = 0;
+           $chanconf{$chan}{$1} = 0;
 
        } elsif (/^[\s\t]+(\S+)[\s\t]+(.*)$/) {# what = val.
            $chanconf{$chan}{$1} = $2;
@@ -297,8 +295,6 @@ sub readChanFile {
        }
     }
 
-    delete $cache{negative};
-
     &status("CHANFILE: Loaded: ".(scalar(keys %chanconf)-1)." chans");
 }