From 3f7a1ee2f7fc21a42643744d675e55112ae6140f Mon Sep 17 00:00:00 2001 From: OpSimple <35542206+OpSimple@users.noreply.github.com> Date: Fri, 1 Jun 2018 19:05:15 +0530 Subject: Just cleaning stuffs --- server/src/commands/mod/dumb.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'server') 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' }); } -- cgit v1.2.1