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

Added an extra option to add allies

Added an extra option to add allies who can see the dumb user's texts
This commit is contained in:
OpSimple 2018-06-01 03:39:12 +05:30 committed by GitHub
parent ae08e6c5d4
commit fd7fd23050
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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