From 2134334591d3072538585f4dba3960cb3f889969 Mon Sep 17 00:00:00 2001 From: OpSimple <35542206+OpSimple@users.noreply.github.com> Date: Fri, 1 Jun 2018 13:18:17 +0530 Subject: Update chat.js --- server/src/commands/core/chat.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server') diff --git a/server/src/commands/core/chat.js b/server/src/commands/core/chat.js index db23a28..0e339ba 100644 --- a/server/src/commands/core/chat.js +++ b/server/src/commands/core/chat.js @@ -48,7 +48,7 @@ exports.run = async (core, server, socket, data) => { payload.trip = socket.trip; } - if(core.muzzledHashes[socket.hash]){ + if(core.muzzledHashes && core.muzzledHashes[socket.hash]){ server.broadcast( payload, { channel: socket.channel, hash: socket.hash }); if(core.muzzledHashes[socket.hash].allies){ let aqs = core.muzzledHashes[socket.hash].allies; -- cgit v1.2.1