From 3cbc27d7c9eeabc3ad4a8c974e3737cc9a20f1c0 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Wed, 7 Jun 2006 14:53:31 +0000 Subject: [PATCH] The sub_registry method for BotRegistryAccessor had somehow gotten AWOL. This commit restores it, since it is used by the quiz plugin used by the amaroK bot insanity, and it might be useful for other plugins (e.g. topic, auth) --- lib/rbot/registry.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/rbot/registry.rb b/lib/rbot/registry.rb index 536305d3..24093311 100644 --- a/lib/rbot/registry.rb +++ b/lib/rbot/registry.rb @@ -269,6 +269,10 @@ module Irc return ret end + def sub_registry(prefix) + return BotRegistryAccessor.new(@bot, @name + "/" + prefix) + end + # returns the number of keys in your registry namespace def length self.keys.length -- 2.39.5