diff options
author | OpSimple <35542206+OpSimple@users.noreply.github.com> | 2018-06-01 09:48:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-01 09:48:17 +0200 |
commit | 2134334591d3072538585f4dba3960cb3f889969 (patch) | |
tree | 19f9d7aed2d52594820ac4167c6d255548e143e4 | |
parent | Added an extra loop for allies (diff) | |
download | hackchat-2134334591d3072538585f4dba3960cb3f889969.tar.gz hackchat-2134334591d3072538585f4dba3960cb3f889969.zip |
Update chat.js
-rw-r--r-- | server/src/commands/core/chat.js | 2 |
1 files changed, 1 insertions, 1 deletions
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; |