diff options
author | OpSimple <35542206+OpSimple@users.noreply.github.com> | 2018-06-01 15:35:15 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-01 15:35:15 +0200 |
commit | 3f7a1ee2f7fc21a42643744d675e55112ae6140f (patch) | |
tree | 12db1f9c04ec4e7e0d10abab042ba7f0a585054e /server/src/commands | |
parent | Update chat.js (diff) | |
download | hackchat-3f7a1ee2f7fc21a42643744d675e55112ae6140f.tar.gz hackchat-3f7a1ee2f7fc21a42643744d675e55112ae6140f.zip |
Just cleaning stuffs
Diffstat (limited to '')
-rw-r--r-- | server/src/commands/mod/dumb.js | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/server/src/commands/mod/dumb.js b/server/src/commands/mod/dumb.js index de0fe11..ac2d995 100644 --- a/server/src/commands/mod/dumb.js +++ b/server/src/commands/mod/dumb.js @@ -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' }); } |