summaryrefslogtreecommitdiff
path: root/data
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-19 21:19:45 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-19 21:19:45 +0000
commit47ff6e24c9c3b8ca0af842d780681f2115dad88e (patch)
tree3607b634c7d751f7c62c194220077f05c8f2a861 /data
parentb323de1cef5edcb7dc48989061221c5ca98f9c3a (diff)
url plugin: only extract URIs for the schemes we're interested in (http[s])
Diffstat (limited to 'data')
-rw-r--r--data/rbot/plugins/url.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/url.rb b/data/rbot/plugins/url.rb
index c4fce2ae..0896c87e 100644
--- a/data/rbot/plugins/url.rb
+++ b/data/rbot/plugins/url.rb
@@ -163,7 +163,7 @@ class UrlPlugin < Plugin
return if m.address?
escaped = URI.escape(m.message, OUR_UNSAFE)
- urls = URI.extract(escaped)
+ urls = URI.extract(escaped, ['http', 'https'])
Thread.new { handle_urls(m, urls) }
end