diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-06-07 14:53:31 +0000 |
---|---|---|
committer | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2006-06-07 14:53:31 +0000 |
commit | 3cbc27d7c9eeabc3ad4a8c974e3737cc9a20f1c0 (patch) | |
tree | 0fd074bef0ab9f4c7a275f7c77c98f9234c89736 /lib/rbot | |
parent | 8538e56167676b9bfa600c489caf3f94b2a33e50 (diff) |
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)
Diffstat (limited to 'lib/rbot')
-rw-r--r-- | lib/rbot/registry.rb | 4 |
1 files changed, 4 insertions, 0 deletions
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 |