aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOpSimple <35542206+OpSimple@users.noreply.github.com>2018-06-01 15:35:15 +0200
committerGitHub <noreply@github.com>2018-06-01 15:35:15 +0200
commit3f7a1ee2f7fc21a42643744d675e55112ae6140f (patch)
tree12db1f9c04ec4e7e0d10abab042ba7f0a585054e
parentUpdate chat.js (diff)
downloadhackchat-3f7a1ee2f7fc21a42643744d675e55112ae6140f.tar.gz
hackchat-3f7a1ee2f7fc21a42643744d675e55112ae6140f.zip
Just cleaning stuffs
Diffstat (limited to '')
-rw-r--r--server/src/commands/mod/dumb.js5
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' });
}