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:
parent
cd0928a881
commit
830182dcf8
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user