diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-19 21:19:45 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-19 21:19:45 +0000 |
commit | 47ff6e24c9c3b8ca0af842d780681f2115dad88e (patch) | |
tree | 3607b634c7d751f7c62c194220077f05c8f2a861 | |
parent | b323de1cef5edcb7dc48989061221c5ca98f9c3a (diff) |
url plugin: only extract URIs for the schemes we're interested in (http[s])
-rw-r--r-- | data/rbot/plugins/url.rb | 2 |
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 |