private void send(Action action, boolean detail) { Event e = action.getEvent(); if (e != null) { StringBuilder msg = new StringBuilder(); msg.append(e.getEventType()); msg.append(" "); msg.append(e.getId()); msg.append(" at "); msg.append(new Date(e.getCtime()).toString()); conn.doPrivmsg(channel, msg.toString()); if (detail) { conn.doPrivmsg(channel, JsonUtil.toJson(e)); } } }