diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-08-23 06:34:19 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-08-23 06:34:19 +0000 |
commit | 9b64ef8fef8db1b55b1316bdfaa111b16680e351 (patch) | |
tree | bca8bf035e9abf27814dfcd4b5882f3d86e2c57b | |
parent | 6167e109580de887ce69b1795231aee005e2c786 (diff) |
url plugin: only consider http(s) urls found by URI.extract()
-rw-r--r-- | data/rbot/plugins/url.rb | 1 |
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 |