summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-02 10:10:10 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-02 10:10:10 +0000
commite1c2e8e315b66755746b0386d935bfa19a630788 (patch)
tree55d62909623ffb353cd110eb4e3dfdf801f246b2 /lib
parentb835c480b45f41dc59756bbaeed7c92aa14de9f9 (diff)
registry.rb: suppress warning when @recovery is not defined
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/registry.rb2
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