diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-02 10:10:10 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2007-09-02 10:10:10 +0000 |
commit | e1c2e8e315b66755746b0386d935bfa19a630788 (patch) | |
tree | 55d62909623ffb353cd110eb4e3dfdf801f246b2 /lib/rbot/registry.rb | |
parent | b835c480b45f41dc59756bbaeed7c92aa14de9f9 (diff) |
registry.rb: suppress warning when @recovery is not defined
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 |