From f22279cf33fd211baf4c3b0e89ae0037d2607d36 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sun, 23 Sep 2007 23:24:15 +0000 Subject: core/userdata: bot_data -> botdata --- lib/rbot/core/userdata.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'lib/rbot') 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 -- cgit v1.2.3