aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands
diff options
context:
space:
mode:
Diffstat (limited to 'server/src/commands')
-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' });
}