Google

# File jabber4r/session.rb, line 50

    def accept

      case type

      when :subscribe

        @session.connection.send(Jabber::Protocol::Presence.gen_accept_subscription(@id, @from))

      when :unsubscribe

        @session.connection.send(Jabber::Protocol::Presence.gen_accept_unsubscription(@id, @from))

      else

        raise "Cannot accept a subscription of type #{type.to_s}"

      end

    end