protected void connected(String ip,int port){
  this.connectedIp=ip;
  this.connectedPort=port;
  this.connectedSince=System.currentTimeMillis();
  setState(Irc.STATE_CONNECTED);
  onConnect();
  if (pass != null) {
    send("PASS " + pass);
  }
  send("NICK " + nick);
  send(String.format("USER %s 0 * :Chatty",nick));
}

protected void connected ( String ip , int port ) { this . connectedIp = ip ; this . connectedPort = port ; this . connectedSince = System . currentTimeMillis ( ) ; setState ( Irc . STATE_CONNECTED ) ; onConnect ( ) ; if ( pass != null ) { send ( "PASS " + pass ) ; } send ( "NICK " + nick ) ; send ( String . format ( "USER %s 0 * :Chatty" , nick ) ) ; }
called from the connection thread once the initial connection has been established without an error . so now work on getting the connection to the irc server going by sending credentials and stuff .
