1
0
mirror of https://github.com/wbbaddons/Tims-Chat.git synced 2024-10-31 14:10:08 +00:00

Parse normal messages with SimpleMessageParser

This commit is contained in:
Tim Düsterhus 2011-12-10 16:46:35 +01:00
parent cd0928a881
commit 830182dcf8

View File

@ -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;
}