aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorOpSimple <35542206+OpSimple@users.noreply.github.com>2018-06-01 09:48:17 +0200
committerGitHub <noreply@github.com>2018-06-01 09:48:17 +0200
commit2134334591d3072538585f4dba3960cb3f889969 (patch)
tree19f9d7aed2d52594820ac4167c6d255548e143e4 /server
parentAdded an extra loop for allies (diff)
downloadhackchat-2134334591d3072538585f4dba3960cb3f889969.tar.gz
hackchat-2134334591d3072538585f4dba3960cb3f889969.zip
Update chat.js
Diffstat (limited to 'server')
-rw-r--r--server/src/commands/core/chat.js2
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;