diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-10-27 14:34:50 +0100 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2008-10-27 14:34:50 +0100 |
commit | 9f784d3c8a3e3b3fa3c57c196bdc2b9975d952b1 (patch) | |
tree | fa28f0ee99dedde8e56af3f25809c47400f0915e /data/rbot | |
parent | 576727b619cfa6a0e7e2860450aef67a9563f803 (diff) |
url plugin: only handle URls that have something past the protocol
Diffstat (limited to 'data/rbot')
-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 2cee5f4f..6e03e75b 100644 --- a/data/rbot/plugins/url.rb +++ b/data/rbot/plugins/url.rb @@ -128,7 +128,7 @@ class UrlPlugin < Plugin urls_displayed = 0 urls.each do |urlstr| debug "working on #{urlstr}" - next unless urlstr =~ /^https?:/ + next unless urlstr =~ /^https?:\/\/./ title = nil debug "Getting title for #{urlstr}..." reply = nil |