Skip to content

Commit

Permalink
Add global message meta check
Browse files Browse the repository at this point in the history
This is an attempted fix for the party system bug. Beware that this is not release ready, needs further testing.
  • Loading branch information
LakeYS committed Feb 17, 2019
1 parent 52dd20e commit e9e15b4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,13 @@ function handleMsgFromGame(line) {
return;
}

var checkString = "'Global'):";

if(split[10] !== checkString && split[11] !== checkString) {
console.log("Non-global detected, message will not send");
return;
}

msg = msg.replace(/ *\([^)]*\): */, "");
}

Expand Down

0 comments on commit e9e15b4

Please sign in to comment.