From e1c2e8e315b66755746b0386d935bfa19a630788 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 2 Sep 2007 10:10:10 +0000 Subject: registry.rb: suppress warning when @recovery is not defined --- lib/rbot/registry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/rbot') diff --git a/lib/rbot/registry.rb b/lib/rbot/registry.rb index d1388ce2..98c5b3ea 100644 --- a/lib/rbot/registry.rb +++ b/lib/rbot/registry.rb @@ -181,7 +181,7 @@ module Irc rescue Exception => e error _("failed to restore marshal data for #{val.inspect}, attempting recovery or fallback to default") debug e - if @recovery + if defined? @recovery and @recovery begin return @recovery.call(val) rescue Exception => ee -- cgit v1.2.3