summaryrefslogtreecommitdiff
path: root/data/rbot/plugins
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2012-12-19 10:04:09 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2012-12-19 10:04:09 +0100
commitf506b9a3752b20ad045a7c852113f133e0bf382e (patch)
treea09b2f50250b6ed077176626aa24175c8ea5a43a /data/rbot/plugins
parent91827dc7b06314bd4c953159ae61ab86cacb3b8d (diff)
imdb: fix for the check of the final /
Diffstat (limited to 'data/rbot/plugins')
-rw-r--r--data/rbot/plugins/imdb.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/rbot/plugins/imdb.rb b/data/rbot/plugins/imdb.rb
index 0df8e2d4..60826299 100644
--- a/data/rbot/plugins/imdb.rb
+++ b/data/rbot/plugins/imdb.rb
@@ -133,7 +133,7 @@ class Imdb
resp = nil
begin
# movie urls without tailing / trigger a redirect
- sr += '/' if sr[-1] != '/'
+ sr += '/' if sr[-1,1] != '/'
resp = @bot.httputil.get_response(IMDB + sr, :max_redir => -1)
rescue Exception => e
error e.message