]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/Update.pl
really support negative booleans and and return -1 for IsChanConf() when they are...
[infobot.git] / src / Factoids / Update.pl
index 915eec1b45aefbe6ec8d822fc5bc48a12ce57f50..400012e52387e126765c803dba173bf3966c8f82 100644 (file)
@@ -54,7 +54,7 @@ sub update {
 
     # factoid arguments handler.
     # must start with a non-variable
-    if (&IsChanConf("factoidArguments") and $lhs =~ /^[^\$]+.*\$/) {
+    if (&IsChanConf("factoidArguments") > 0 and $lhs =~ /^[^\$]+.*\$/) {
        &status("Update: Factoid Arguments found.");
        &status("Update: orig lhs => '$lhs'.");
        &status("Update: orig rhs => '$rhs'.");