()
| 120 | } |
| 121 | |
| 122 | public String toString() { |
| 123 | StringBuffer time = new StringBuffer(); |
| 124 | if (messageType == Msg.MESSAGE_TYPE_PRESENCE |
| 125 | || !(Config.getInstance().hideTimestamps |
| 126 | || (Config.getInstance().showNickNames && subject != null))) { |
| 127 | time.append("[").append(getTime()).append("] "); |
| 128 | } |
| 129 | time.append(body); |
| 130 | return time.toString(); |
| 131 | } |
| 132 | |
| 133 | public boolean isPresence() { return messageType==MESSAGE_TYPE_PRESENCE; } |
| 134 |
no test coverage detected