diff options
Diffstat (limited to 'lib/rbot/registry.rb')
-rw-r--r-- | lib/rbot/registry.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |