]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/blobdiff - lib/rbot/registry.rb
utils: htmlinfo filtering doc cleanups
[user/henk/code/ruby/rbot.git] / lib / rbot / registry.rb
index 41f9747f1801d96664a032afed2559d85c2c8853..2ea2e5784441bb01b331556d29cb6ec16bb31df1 100644 (file)
@@ -100,7 +100,7 @@ class Bot
   #   blah = @registry[:blah]
   #   blah[:foo] = "flump"
   #   @registry[:blah] = blah
-
+  #
   # If you don't need to store objects, and strictly want a persistant hash of
   # strings, you can override the store/restore methods to suit your needs, for
   # example (in your plugin):
@@ -216,7 +216,7 @@ class Bot
     end
 
     def default
-      @default && (@default.dup rescue default)
+      @default && (@default.dup rescue @default)
     end
 
     # just like Hash#each