mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-15 15:24:52 +09:00
globalChat no longer breaks when the master is restarted
This commit is contained in:
1 parent
47b74a07d1
commit
e6c706a83e
1 file changed
+3
-1
@@ -7,7 +7,9 @@ module.exports = class remoteCommands {
|
||||
this.socket = extras.socket;
|
||||
console.log(mergedConfig)
|
||||
this.instances = {};
|
||||
this.socket.emit("registerChatReciever");
|
||||
|
||||
this.socket.on("hello", () => this.socket.emit("registerChatReciever"));
|
||||
|
||||
this.socket.on("gameChat", async data => {
|
||||
if(data.instanceID && data.instanceID != this.config.unique.toString()){
|
||||
if(data.data.includes("[CHAT]") && (data.data.toLowerCase().includes("/shout") || data.data.toLowerCase().includes("!shout"))){
|
||||
|
||||
Reference in new issue
Block a user