summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
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 41f9747f..b85a6224 100644
--- a/lib/rbot/registry.rb
+++ b/lib/rbot/registry.rb
@@ -216,7 +216,7 @@ class Bot
end
def default
- @default && (@default.dup rescue default)
+ @default && (@default.dup rescue @default)
end
# just like Hash#each