Class UserDataModule
In: lib/rbot/core/userdata.rb
Parent: CoreBotModule

User data is stored in registries indexed by BotUser name and Irc::User nick. This core module takes care of handling its usage.

Methods

Public Class methods

Public Instance methods

  TODO FIXME not yet: are we going to allow non-string
  values for data? if so, this can't work ...

def handle_set(m, params)

  user = m.server.get_user(params[:nick]) || m.source
  key = params[:key].intern
  data = params[:data].to_s

end

[Validate]