summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/url.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-19 21:19:46 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-19 21:19:46 +0000
commit250407932afa3932c1357de1acf67d54cd12481b (patch)
tree431145c4565767eb9b7450428dbc75ee7727c276 /data/rbot/plugins/url.rb
parent47ff6e24c9c3b8ca0af842d780681f2115dad88e (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.rb1
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