summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorfranz <Franz.Netykafka@runbox.com>2009-10-20 09:07:27 +0200
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2009-10-21 23:02:27 +0200
commit96218423c1200c9281b8b4261a924565c4eafd2a (patch)
tree7fddf5b141a782cc2121a7e38c25221d33a6712e /lib
parent402c66aa5228f734e88abd7b3cdc482f71239553 (diff)
httputil.rb: fix http.no_expire_cache being IntegerValue
It should be BooleanValue, otherwise false would get converted to 0 which would evaluate to true, meaning cache would never expire.
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/core/utils/httputil.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rbot/core/utils/httputil.rb b/lib/rbot/core/utils/httputil.rb
index 76e3f298..d1eb77ea 100644
--- a/lib/rbot/core/utils/httputil.rb
+++ b/lib/rbot/core/utils/httputil.rb
@@ -190,7 +190,7 @@ class HttpUtil
Bot::Config.register Bot::Config::IntegerValue.new('http.max_cache_time',
:default => 60*24,
:desc => "After how many minutes since first use a cached document is considered to be expired")
- Bot::Config.register Bot::Config::IntegerValue.new('http.no_expire_cache',
+ Bot::Config.register Bot::Config::BooleanValue.new('http.no_expire_cache',
:default => false,
:desc => "Set this to true if you want the bot to never expire the cached pages")
Bot::Config.register Bot::Config::IntegerValue.new('http.info_bytes',