Skip to content

Commit

Permalink
* Fix sending of too many images
Browse files Browse the repository at this point in the history
* Bump version

Signed-off-by: Tobias Franz <[email protected]>
  • Loading branch information
kid2407 committed Aug 5, 2021
1 parent c783535 commit c4c991b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
4 changes: 2 additions & 2 deletions module.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"title": "Baka Chat",
"description": "A module to make natural 1s and 20s more special.",
"author": "kid2407",
"version": "1.1.1",
"version": "1.1.2",
"minimumCoreVersion": "0.8.6",
"compatibleCoreVersion": "0.8.8",
"url": "https://github.com/kid2407/baka-chat",
Expand All @@ -14,4 +14,4 @@
"esmodules": [
"scripts/main.js"
]
}
}
6 changes: 4 additions & 2 deletions scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,11 @@ function handleBetterDice5ERolls(message) {

/**
* @param {ChatMessage} message
* @param {Object} options
* @param {string} userId
*/
function handleChatMessage(message) {
if (message.isRoll && message.data.whisper.length === 0) {
function handleChatMessage(message, options, userId) {
if (game.userId === userId && message.isRoll && message.data.whisper.length === 0) {
let handledResult

if (betterRolls5ePresent && message.roll.dice.length === 0) {
Expand Down

0 comments on commit c4c991b

Please sign in to comment.