From d40db7077b07001095c0228617b3067716c12940 Mon Sep 17 00:00:00 2001 From: bacn <13384390+bacn@users.noreply.github.com> Date: Mon, 30 Apr 2018 00:07:16 +0800 Subject: Fixed changenick command, userExists now works. --- server/src/commands/core/changenick.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'server/src/commands') diff --git a/server/src/commands/core/changenick.js b/server/src/commands/core/changenick.js index 460f811..6b2932c 100644 --- a/server/src/commands/core/changenick.js +++ b/server/src/commands/core/changenick.js @@ -45,7 +45,7 @@ exports.run = async (core, server, socket, data) => { } let userExists = server.findSockets({ - channel: data.channel, + channel: socket.channel, nick: (targetNick) => targetNick.toLowerCase() === newNick.toLowerCase() }); -- cgit v1.2.1