]> git.donarmstrong.com Git - infobot.git/blobdiff - blootbot/src/Factoids/Question.pl
really support negative booleans and and return -1 for IsChanConf() when they are...
[infobot.git] / blootbot / src / Factoids / Question.pl
index 5b2610501fb163664e5cc2caed88b1a0b271bec1..44fd742557934a433aaced5c02ac23cffd985c16 100644 (file)
@@ -33,7 +33,7 @@ sub doQuestion {
 
     if (!$addressed) {
        return '' unless ($finalQMark);
-       return '' unless &IsChanConf("minVolunteerLength");
+       return '' unless &IsChanConf("minVolunteerLength") > 0;
        return '' if (length $query < &::getChanConf('minVolunteerLength'));
     } else {
        ### TODO: this should be caught in Process.pl?
@@ -93,7 +93,7 @@ sub doQuestion {
     $query =~ s/^\s+|\s+$//g; # bleh. hacked.
     push(@query, $query) if ($query ne $x);
 
-    if (&IsChanConf("factoidArguments")) {
+    if (&IsChanConf("factoidArguments") > 0) {
        $result = &factoidArgs($query[0]);
 
        return $result if (defined $result);
@@ -154,7 +154,7 @@ sub doQuestion {
     }
 
     ### TODO: Use &Forker(); move function to Debian.pl
-    if (&IsChanConf('debianForFactoid')) {
+    if (&IsChanConf('debianForFactoid') > 0) {
        &loadMyModule('Debian');
        $result = &Debian::DebianFind($query);  # ???
        ### TODO: debian module should tell, through shm, that it went