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