1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

Update chat.js

This commit is contained in:
OpSimple 2018-06-01 13:18:17 +05:30 committed by GitHub
parent eb830e11b7
commit 2134334591
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;