public void onPrivmsg(String chan, IRCUserInfo user, String msg) {
    String nick = user.getNick();
    String line = "<"+ nick +"> "+ msg;
    if (IRCUtil.isChannel(chan)) {
      mainFrame.updateTab(chan, line); 
      mainFrame.doTabHighlight(chan); 
    } else {
      mainFrame.updateTab(nick, line); 
      mainFrame.doTabHighlight(nick); 
    }
    if (mainFrame.getNickSoundHighlight() 
      && new String(" "+ msg +" ").indexOf(" "+ conn.getNick() +" ") != -1 
      || msg.startsWith(conn.getNick() +": ")) { 
      mainFrame.doSoundHighlight();
    }
  }