public void onPart(String chan, IRCUserInfo user, String msg) {
    String nick = user.getNick();
    String username = user.getUsername();
    String host = user.getHost();
    if (msg.length() > 0)
      msg = " ("+ msg +")";
    String line = "* Part: "+ nick +" ("+ username +"@"+ host +") parts "+ 
        chan + msg;
    mainFrame.updateTab(chan, line);
    mainFrame.removeNick(chan, nick);
    if (nick.equals(conn.getNick()))
      mainFrame.closePanel(chan);
  }