summaryrefslogtreecommitdiff
path: root/lib/rbot
diff options
context:
space:
mode:
authorGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-23 23:24:15 +0000
committerGiuseppe Bilotta <giuseppe.bilotta@gmail.com>2007-09-23 23:24:15 +0000
commitf22279cf33fd211baf4c3b0e89ae0037d2607d36 (patch)
tree42dbf405383b44a5768838b3c4d575a6a3ec6933 /lib/rbot
parentd8558f23f38c61a4a9da5bac3eacd94238c30e36 (diff)
core/userdata: bot_data -> botdata
Diffstat (limited to 'lib/rbot')
-rw-r--r--lib/rbot/core/userdata.rb6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/rbot/core/userdata.rb b/lib/rbot/core/userdata.rb
index e788539a..85f386b2 100644
--- a/lib/rbot/core/userdata.rb
+++ b/lib/rbot/core/userdata.rb
@@ -13,9 +13,10 @@ module ::Irc
# intended for data retrieval only. See #set_bot_data() if you
# need to alter User data.
#
- def bot_data(key=nil)
+ def botdata(key=nil)
Irc::Utils.bot.plugins['userdata'].get_data(self,key)
end
+ alias :get_botdata :botdata
# This method is used to store Bot data associated with the
# receiver. If no block is passed, _value_ is stored for the key
@@ -24,9 +25,10 @@ module ::Irc
# the new value. If _value_ is present in the block form, it will
# be used to initialize _key_ if it's missing
#
- def set_bot_data(key, value=nil, &block)
+ def set_botdata(key, value=nil, &block)
Irc::Utils.bot.plugins['userdata'].set_data(self, key, value, &block)
end
+
end
end