From 5f67d49fce79569a5e12eee8c8e5fbf26099bf8b Mon Sep 17 00:00:00 2001 From: timriker Date: Fri, 18 Feb 2005 07:51:53 +0000 Subject: [PATCH] minVolunteerLength now per channel git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1147 c11ca15a-4712-0410-83d8-924469b57eb5 --- blootbot/ChangeLog | 3 +++ blootbot/src/Factoids/Question.pl | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/blootbot/ChangeLog b/blootbot/ChangeLog index ac10b87..ffe70a6 100644 --- a/blootbot/ChangeLog +++ b/blootbot/ChangeLog @@ -1,3 +1,6 @@ +2005-02-18 00:00 timriker + + * src/Factoids/Question.pl: minVolunteerLength now per channel * src/core.pl: getChanConf checks _default too * src/: "s/hasParam/IsChanConfOrWarn/" * src/: add handling for channel specific factoids: diff --git a/blootbot/src/Factoids/Question.pl b/blootbot/src/Factoids/Question.pl index 4451aaa..8535aa1 100644 --- a/blootbot/src/Factoids/Question.pl +++ b/blootbot/src/Factoids/Question.pl @@ -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); -- 2.39.5