summaryrefslogtreecommitdiff
path: root/data/rbot/plugins/slashdot.rb
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-01-12 22:15:12 +0100
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2011-01-12 22:15:12 +0100
commit12a508e1a75bc1de501f36ca9e4767f2349fe12e (patch)
tree8ec4db236d70c064742b87c79feb86e783312e1c /data/rbot/plugins/slashdot.rb
parentcafa66beb3392f30ba8f11e6763f690518512471 (diff)
Ruby 1.9 cleanup: variables warnings
Fix most ruby 1.9 warnings about shadowed variables (still one remaining in keywords.rb). The only significant changes are in the quiz game plugin. Also fix an issue in dictclient where the block parameter of a method was not correctly isolated from the previous parameter.
Diffstat (limited to 'data/rbot/plugins/slashdot.rb')
-rw-r--r--data/rbot/plugins/slashdot.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/data/rbot/plugins/slashdot.rb b/data/rbot/plugins/slashdot.rb
index 69f1566f..2c4a2361 100644
--- a/data/rbot/plugins/slashdot.rb
+++ b/data/rbot/plugins/slashdot.rb
@@ -75,9 +75,9 @@ class SlashdotPlugin < Plugin
debug xml.inspect
begin
doc = Document.new xml
- rescue REXML::ParseException => e
- warning e.inspect
- m.reply "couldn't parse output XML: #{e.class}"
+ rescue REXML::ParseException => err
+ warning err.inspect
+ m.reply "couldn't parse output XML: #{err.class}"
return
end
unless doc