slight tweak to mood tag

This commit is contained in:
Xkeeper 2020-11-18 12:39:44 -08:00
parent e92f39eb8c
commit 25a245a9b7
No known key found for this signature in database
GPG Key ID: 397C04773ABE4045

View File

@ -503,6 +503,8 @@ function escape_codeblock($text) {
function doreplace2($msg, $options = null, $mood = 0) {
// @TODO php7.4 or w/e null coalescing
if ($options === null) $options = '0|0';
$mood = intval($mood);
// options will contain smiliesoff|htmloff
$options = explode("|", $options);
$smiliesoff = $options[0];