From 93cc91e6eaa4dbdaae59788a1cd37a8b46f6a435 Mon Sep 17 00:00:00 2001 From: franz Date: Sun, 6 Sep 2009 10:46:05 +0200 Subject: ruby 1.9: Exception#to_str Since in ruby 1.9 Exception#to_str was removed, change it to to #to_s --- lib/rbot/plugins.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rbot/plugins.rb') diff --git a/lib/rbot/plugins.rb b/lib/rbot/plugins.rb index 2b4694ad..81449cce 100644 --- a/lib/rbot/plugins.rb +++ b/lib/rbot/plugins.rb @@ -582,7 +582,7 @@ module Plugins "#{fname}#{$1}#{$3}" } } - msg = err.to_str.gsub(/^\(eval\)(:\d+)(:in `.*')?(:.*)?/) { |m| + msg = err.to_s.gsub(/^\(eval\)(:\d+)(:in `.*')?(:.*)?/) { |m| "#{fname}#{$1}#{$3}" } newerr = err.class.new(msg) -- cgit v1.2.3