public final synchronized void reconnect() throws IOException, IrcException, NickAlreadyInUseException {
  if (getServer() == null) {
    throw new IrcException("Cannot reconnect to an IRC server because we were never connected to one previously!");
  }
  connect(getServer(),getPort(),getPassword());
}

public final synchronized void reconnect ( ) throws IOException , IrcException , NickAlreadyInUseException { if ( getServer ( ) == null ) { throw new IrcException ( "Cannot reconnect to an IRC server because we were never connected to one previously!" ) ; } connect ( getServer ( ) , getPort ( ) , getPassword ( ) ) ; }
reconnects to the irc server that we were previously connected to . if necessary , the appropriate port number and password will be used . this method will throw an ircexception if we have never connected to an irc server previously .
