From: timriker <timriker@c11ca15a-4712-0410-83d8-924469b57eb5>
Date: Fri, 18 Feb 2005 07:51:53 +0000 (+0000)
Subject: minVolunteerLength now per channel
X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=5f67d49fce79569a5e12eee8c8e5fbf26099bf8b;p=infobot.git

minVolunteerLength now per channel


git-svn-id: https://svn.code.sf.net/p/infobot/code/trunk@1147 c11ca15a-4712-0410-83d8-924469b57eb5
---

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);