private void commandPartChannel(String channel){
  if (channel == null || channel.isEmpty()) {
    g.printLine("No channel to leave.");
  }
 else {
    closeChannel(channel);
  }
}

private void commandPartChannel ( String channel ) { if ( channel == null || channel . isEmpty ( ) ) { g . printLine ( "No channel to leave." ) ; } else { closeChannel ( channel ) ; } }
command to part channel entered .
