From 830182dcf82d1017f70c74dc4f3b829677e2135b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Sat, 10 Dec 2011 16:46:35 +0100 Subject: [PATCH] Parse normal messages with SimpleMessageParser --- file/lib/data/chat/message/ChatMessage.class.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/file/lib/data/chat/message/ChatMessage.class.php b/file/lib/data/chat/message/ChatMessage.class.php index f08fd7e..fb2c2b5 100644 --- a/file/lib/data/chat/message/ChatMessage.class.php +++ b/file/lib/data/chat/message/ChatMessage.class.php @@ -56,6 +56,11 @@ public function getFormattedMessage() { case self::TYPE_LEAVE: case self::TYPE_BACK: $message = WCF::getLanguage()->get('wcf.chat.message.'.$this->type); + break; + case self::TYPE_NORMAL: + if (!$this->enableHTML) { + $message = \wcf\system\bbcode\SimpleMessageParser::getInstance()->parse($message, $this->enableSmilies); + } } return $message; }