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:
parent
ae08e6c5d4
commit
fd7fd23050
|
@ -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'
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user