From 9b64ef8fef8db1b55b1316bdfaa111b16680e351 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Thu, 23 Aug 2007 06:34:19 +0000 Subject: url plugin: only consider http(s) urls found by URI.extract() --- data/rbot/plugins/url.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'data/rbot/plugins/url.rb') 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 -- cgit v1.2.3