aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
Diffstat (limited to 'server')
-rw-r--r--server/src/commands/mod/dumb.js10
1 files changed, 8 insertions, 2 deletions
diff --git a/server/src/commands/mod/dumb.js b/server/src/commands/mod/dumb.js
index 19d9b68..de0fe11 100644
--- a/server/src/commands/mod/dumb.js
+++ b/server/src/commands/mod/dumb.js
@@ -40,7 +40,13 @@ exports.run = async (core, server, socket, data) => {
return;
}
- core.muzzledHashes[badClient.hash] = true;
+ let record = core.muzzledHashes[badClient.hash] = {
+ dumb:true
+ }
+
+ if(data.allies && data.allies.constructor === Array){
+ record.allies = data.allies;
+ }
server.broadcast({
cmd: 'info',
@@ -53,6 +59,6 @@ exports.requiredData = ['nick'];
exports.info = {
name: 'dumb',
- usage: 'dumb {nick}',
+ usage: 'dumb {nick} [allies...]',
description: 'Cleanly disable a user messages and make him dumb'
};