diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-19 21:19:46 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-19 21:19:46 +0000 |
commit | 250407932afa3932c1357de1acf67d54cd12481b (patch) | |
tree | 431145c4565767eb9b7450428dbc75ee7727c276 /data/rbot/plugins/url.rb | |
parent | 47ff6e24c9c3b8ca0af842d780681f2115dad88e (diff) |
url plugin: bail out early when no urls were found
Diffstat (limited to 'data/rbot/plugins/url.rb')
-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 0896c87e..524b0858 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -164,6 +164,7 @@ class UrlPlugin < Plugin escaped = URI.escape(m.message, OUR_UNSAFE) urls = URI.extract(escaped, ['http', 'https']) + return if urls.empty? Thread.new { handle_urls(m, urls) } end |