# File lib/rbot/core/userdata.rb, line 91
  def set_data_hash(user, hh)
    iu = user.to_irc_user
    bu = iu.botuser

    # we .dup the hash to remove singleton methods
    # and make it dump-able
    h = hh.dup

    @ircuser[iu.nick] = h
    return h if bu.default?

    if bu.transient?
      @transient[bu.netmasks.first.fullform] = h
    else
      @botuser[bu.username] = h
    end
    return h
  end