Changed hotpatch scenario dir for visibility, made scenario loading recursive

This commit is contained in:
Daniel Vestøl committed 2018-11-13 21:24:42 +01:00
1 parent 58b609cbd0
commit 1e868b4ff4
2 files changed
+39 -6

No files matched your search

+2
View File
@@ -12,6 +12,8 @@ module.exports = class remoteCommands {
this.socket.on("gameChat", async data => {
if(data.instanceID && data.instanceID != this.config.unique.toString()){
if(data.data.includes("[CHAT]")
// if this isn't used as an info command or something (reduce spam)
&& !data.data.includes("!info")
// check if we are allowed to cross chat at all, default to true
&& (mergedConfig.enableCrossServerShout == undefined || mergedConfig.enableCrossServerShout)
// check if we are supposed to relay this message