summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/url.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-08-23 06:34:19 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-08-23 06:34:19 +0000
commit9b64ef8fef8db1b55b1316bdfaa111b16680e351 (patch)
treebca8bf035e9abf27814dfcd4b5882f3d86e2c57b /data/rbot/plugins/url.rb
parent6167e109580de887ce69b1795231aee005e2c786 (diff)
url plugin: only consider http(s) urls found by URI.extract()
Diffstat (limited to 'data/rbot/plugins/url.rb')
-rw-r--r--data/rbot/plugins/url.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb
index cdbe5cc8..373d5a87 100644
--- a/data/rbot/plugins/url.rb
+++ b/data/rbot/plugins/url.rb
@@ -137,6 +137,7 @@ class UrlPlugin < Plugin
list = @registry[m.target]
urls.each { |urlstr|
debug "working on #{urlstr}"
+ next unless urlstr =~ /^https?:/
title = nil
if @bot.config['url.display_link_info']
Thread.start do