]> git.donarmstrong.com Git - infobot.git/blobdiff - src/Factoids/Question.pl
minVolunteerLength now per channel
[infobot.git] / src / Factoids / Question.pl
index 4451aaa30d6e3f2224a312bf8e3b33ff4c4f85fd..8535aa19b1ac1c771c6a1e97461ba9a5c00756f2 100644 (file)
@@ -33,8 +33,8 @@ sub doQuestion {
 
     if (!$addressed) {
        return '' unless ($finalQMark);
-       return '' if (&IsParam("minVolunteerLength") == 0);
-       return '' if (length $query < $param{'minVolunteerLength'});
+       return '' unless &IsChanConf("minVolunteerLength");
+       return '' if (length $query < &::getChanConf('minVolunteerLength'));
     } else {
        ### TODO: this should be caught in Process.pl?
        return '' unless ($talkok);