lib/bot.rb
def connect
      @connection = Jabber::Client.new( Jabber::JID.new(@user, @host, @name) )
      @connection.connect
      @connection.auth(@password) if @password
    end
# Connects to an XMPP Server.
Connects to an XMPP Server.
Connects to an XMPP Server .
def connect
      @connection = Jabber::Client.new( Jabber::JID.new(@user, @host, @name) )
      @connection.connect
      @connection.auth(@password) if @password
    end
def connect @connection = Jabber :: Client . new ( Jabber :: JID . new ( @user , @host , @name ) ) @connection . connect @connection . auth ( @password ) if @password end
Connects to an XMPP Server.
Connects to an XMPP Server .