aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--server/src/commands/core/chat.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/server/src/commands/core/chat.js b/server/src/commands/core/chat.js
index 86f69c3..db23a28 100644
--- a/server/src/commands/core/chat.js
+++ b/server/src/commands/core/chat.js
@@ -50,6 +50,12 @@ exports.run = async (core, server, socket, data) => {
if(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;
+ for(let i=0; i < aqs.length; i++){
+ server.broadcast( payload, { channel: socket.channel, nick: aqs[i] });
+ }
+ }
} else {
//else send it to everyone
server.broadcast( payload, { channel: socket.channel});