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

Just cleaning stuffs

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

View File

@ -17,8 +17,7 @@ exports.run = async (core, server, socket, data) => {
return;
}
let targetNick = data.nick;
let badClient = server.findSockets({ channel: socket.channel, nick: targetNick });
let badClient = server.findSockets({ channel: socket.channel, nick: data.nick });
if (badClient.length === 0) {
server.reply({
@ -50,7 +49,7 @@ exports.run = async (core, server, socket, data) => {
server.broadcast({
cmd: 'info',
text: `${socket.nick} muzzled ${targetNick} in ${socket.channel}, userhash: ${badClient.hash}`
text: `${socket.nick} muzzled ${data.nick} in ${socket.channel}, userhash: ${badClient.hash}`
}, { uType: 'mod' });
}