Allow dice rolls in {{random}}

This commit is contained in:
Cohee
2023-11-25 20:11:47 +02:00
parent a8dc4dc810
commit 67fa9c9595
2 changed files with 3 additions and 3 deletions

View File

@ -2055,8 +2055,8 @@ function substituteParams(content, _name1, _name2, _original, _group, _replaceCh
const utcTime = moment().utc().utcOffset(utcOffset).format('LT');
return utcTime;
});
content = randomReplace(content);
content = diceRollReplace(content);
content = randomReplace(content);
content = bannedWordsReplace(content);
return content;
}
@ -8575,7 +8575,7 @@ jQuery(async function () {
if (this_chid !== undefined || selected_group) {
// Previously system messages we're allowed to be edited
/*const message = $(this).closest(".mes");
if (message.data("isSystem")) {
return;
}*/