mirror of
https://github.com/Xkeeper0/jul.git
synced 2025-07-26 09:42:01 -07:00
slight tweak to mood tag
This commit is contained in:
@@ -503,6 +503,8 @@ function escape_codeblock($text) {
|
|||||||
function doreplace2($msg, $options = null, $mood = 0) {
|
function doreplace2($msg, $options = null, $mood = 0) {
|
||||||
// @TODO php7.4 or w/e null coalescing
|
// @TODO php7.4 or w/e null coalescing
|
||||||
if ($options === null) $options = '0|0';
|
if ($options === null) $options = '0|0';
|
||||||
|
$mood = intval($mood);
|
||||||
|
|
||||||
// options will contain smiliesoff|htmloff
|
// options will contain smiliesoff|htmloff
|
||||||
$options = explode("|", $options);
|
$options = explode("|", $options);
|
||||||
$smiliesoff = $options[0];
|
$smiliesoff = $options[0];
|
||||||
|
Reference in New Issue
Block a user