public void onKick(String chan, IRCUserInfo user, String nickPass, String msg) {
    String nickAct = user.getNick();
    String line = "* Kick: "+ nickPass +" is kicked by "+ nickAct +" from "+ 
        chan;
    if (msg.length() > 0) line += " ("+ msg +")";
    mainFrame.updateTab(chan, line);
    mainFrame.removeNick(chan, nickPass);
    if (nickPass.equals(conn.getNick())) {
      mainFrame.updateTab(mainFrame.getSelectedIndex(), "You are kicked from "+ chan);
      mainFrame.removeAllNicks(chan); 
    }
  }