public void printUserMessage(UserMessage message){
  User user=message.user;
  boolean ignored=message.ignored_compact;
  if (ignored) {
    printCompact("IGNORED",user);
    return;
  }
  Color color=message.color;
  boolean action=message.action;
  String text=message.text;
  TagEmotes emotes=message.emotes;
  boolean highlighted=message.highlighted;
  if (message.whisper && message.action) {
    color=StyleConstants.getForeground(styles.info());
    highlighted=true;
  }
  closeCompactMode();
  MutableAttributeSet style;
  if (highlighted) {
    style=styles.highlight(color);
  }
 else {
    style=styles.standard();
  }
  print(getTimePrefix(),style);
  printUser(user,action,message.whisper,message.id);
  if (!highlighted && action && styles.actionColored()) {
    style=styles.standard(user.getDisplayColor());
  }
  printSpecials(text,user,style,emotes,false,message.bits > 0);
  printNewline();
}

public void printUserMessage ( UserMessage message ) { User user = message . user ; boolean ignored = message . ignored_compact ; if ( ignored ) { printCompact ( "IGNORED" , user ) ; return ; } Color color = message . color ; boolean action = message . action ; String text = message . text ; TagEmotes emotes = message . emotes ; boolean highlighted = message . highlighted ; if ( message . whisper && message . action ) { color = StyleConstants . getForeground ( styles . info ( ) ) ; highlighted = true ; } closeCompactMode ( ) ; MutableAttributeSet style ; if ( highlighted ) { style = styles . highlight ( color ) ; } else { style = styles . standard ( ) ; } print ( getTimePrefix ( ) , style ) ; printUser ( user , action , message . whisper , message . id ) ; if ( ! highlighted && action && styles . actionColored ( ) ) { style = styles . standard ( user . getDisplayColor ( ) ) ; } printSpecials ( text , user , style , emotes , false , message . bits > 0 ) ; printNewline ( ) ; }
output a regular message from a user .
