Fix: /roll

Regression sur /roll causée par méthode async:
return Promise(false)=>true au lieu de false...
This commit is contained in:
Vincent Vandemeulebrouck
2022-11-30 13:27:05 +01:00
parent 979a48e4d9
commit e67ac96e93
2 changed files with 46 additions and 41 deletions

View File

@ -345,17 +345,3 @@ async function migrationPngWebp_1_5_34() {
/* -------------------------------------------- */
Hooks.once('diceSoNiceReady', (dice3d) => RdDDice.diceSoNiceReady(dice3d));
/* -------------------------------------------- */
/* Foundry VTT chat message */
/* -------------------------------------------- */
Hooks.on("chatMessage", (html, content, msg) => {
if (content[0] == '/') {
let regExp = /(\S+)/g;
let commands = content.match(regExp);
if (game.system.rdd.commands.processChatCommand(commands, content, msg)) {
return false;
}
}
return true;
});