summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/rbot/core/userdata.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/lib/rbot/core/userdata.rb b/lib/rbot/core/userdata.rb
index f4338592..6d7b7489 100644
--- a/lib/rbot/core/userdata.rb
+++ b/lib/rbot/core/userdata.rb
@@ -69,7 +69,15 @@ class UserDataModule < CoreBotModule
else
bh = @botuser[bu.username] || {}
end
- return ih.merge!(bh)
+ ih.merge!(bh)
+
+ class << ih
+ alias :single_retrieve :[]
+ alias :single_assign :[]=
+ include DottedIndex
+ end
+
+ return ih
end
def get_data(user, key=nil)