diff --git a/file/lib/data/chat/message/ChatMessage.class.php b/file/lib/data/chat/message/ChatMessage.class.php index a94bdce..ac50043 100755 --- a/file/lib/data/chat/message/ChatMessage.class.php +++ b/file/lib/data/chat/message/ChatMessage.class.php @@ -103,6 +103,7 @@ public function jsonify($raw = false) { 'formattedUsername' => $this->getFormattedUsername(), 'formattedMessage' => (string) $this, 'formattedTime' => \wcf\util\DateUtil::format(\wcf\util\DateUtil::getDateTimeByTimestamp($this->time), 'H:i:s'), + 'separator' => ($this->type == self::TYPE_NORMAL) ? ': ' : ' ', 'sender' => $this->sender, 'username' => $this->getUsername(), 'time' => $this->time, diff --git a/template/chatMessage.tpl b/template/chatMessage.tpl index 466534a..b3566fb 100644 --- a/template/chatMessage.tpl +++ b/template/chatMessage.tpl @@ -1 +1 @@ -{literal}