summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/url.rb
diff options
context:
space:
mode:
authorDmitry Kim <dmitry point kim at gmail point com>2007-04-24 05:08:44 +0000
committerDmitry Kim <dmitry point kim at gmail point com>2007-04-24 05:08:44 +0000
commit78c6c6ed26f019aec6f3ac9f3e01539a68016537 (patch)
treed46814701dc38d7b456f0924b098de53c3188167 /data/rbot/plugins/url.rb
parenta7b1061f7546d9e3be894aa52a90c9a2f0fbae3c (diff)
* (plugins/url) don't download (and don't cache) non-text urls
Diffstat (limited to 'data/rbot/plugins/url.rb')
-rw-r--r--data/rbot/plugins/url.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb
index 10cc419a..6d82099f 100644
--- a/data/rbot/plugins/url.rb
+++ b/data/rbot/plugins/url.rb
@@ -76,6 +76,8 @@ class UrlPlugin < Plugin
}
end
# if nothing was found, provide more basic info, as for non-html pages
+ else
+ resp.no_cache = true
end
enc = resp['content-encoding']