From e275b12c6eb6ab820902c3d79691a7c3ad02ec3a Mon Sep 17 00:00:00 2001 From: Dmitry Kim Date: Sun, 16 Dec 2007 22:20:46 +0000 Subject: * (registry) no infinite recursion, please --- lib/rbot/registry.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v1.2.3