summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDmitry Kim <dmitry point kim at gmail point com>2007-12-16 22:20:46 +0000
committerDmitry Kim <dmitry point kim at gmail point com>2007-12-16 22:20:46 +0000
commite275b12c6eb6ab820902c3d79691a7c3ad02ec3a (patch)
tree3bb7b9d77bccaf5ed2a18b5e3035772901a23133 /lib
parent8610d6aef936b05126fc9b38af7233d6493d6627 (diff)
* (registry) no infinite recursion, please
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