From e9e15b41b9c5f7cb9cf05e509f0e9b2a6e538526 Mon Sep 17 00:00:00 2001 From: Lake Date: Sat, 16 Feb 2019 19:52:42 -0500 Subject: [PATCH] Add global message meta check This is an attempted fix for the party system bug. Beware that this is not release ready, needs further testing. --- index.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/index.js b/index.js index 8097f5d..41c7157 100644 --- a/index.js +++ b/index.js @@ -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(/ *\([^)]*\): */, ""); }