diff options
Diffstat (limited to 'lib')
-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 |