set_data (UserDataModule)

    # File lib/rbot/core/userdata.rb, line 110
      def set_data(user, key, value=nil, &block)
        h = get_data_hash(user)
        debug h

        ret = value

        if not block_given?
          h[key] = value
        else
          if value and not h.has_key?(key)
            h[key] = value
          end
          ret = yield h[key]
        end
        debug ret

        set_data_hash(user, h)

        return ret
      end