From 0dcb2823c3f71c1dbbfbb2f1bdfc1f10ef5f29a0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim=20D=C3=BCsterhus?= Date: Tue, 27 Dec 2011 14:10:40 +0100 Subject: [PATCH] ME and WHISPER are parsed like normal messages --- file/lib/data/chat/message/ChatMessage.class.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/file/lib/data/chat/message/ChatMessage.class.php b/file/lib/data/chat/message/ChatMessage.class.php index 1af64a8..a94bdce 100755 --- a/file/lib/data/chat/message/ChatMessage.class.php +++ b/file/lib/data/chat/message/ChatMessage.class.php @@ -57,9 +57,12 @@ public function getFormattedMessage() { $message = WCF::getLanguage()->get('wcf.chat.message.'.$this->type); break; case self::TYPE_NORMAL: + case self::TYPE_ME: + case self::TYPE_WHISPER: if (!$this->enableHTML) { $message = \wcf\system\bbcode\SimpleMessageParser::getInstance()->parse($message, true, $this->enableSmilies); } + break; } return $message; } @@ -84,7 +87,7 @@ public function getFormattedUsername() { */ public function getUsername() { if ($this->type == self::TYPE_INFORMATION) return WCF::getLanguage()->get('wcf.chat.information'); - if ($this->type == self::ERROR) return WCF::getLanguage()->get('wcf.chat.error'); + if ($this->type == self::TYPE_ERROR) return WCF::getLanguage()->get('wcf.chat.error'); return $this->username; }