aboutsummaryrefslogtreecommitdiffstats
path: root/server/src/commands
diff options
context:
space:
mode:
authorbacn <13384390+bacn@users.noreply.github.com>2018-04-29 18:07:16 +0200
committerbacn <13384390+bacn@users.noreply.github.com>2018-04-29 18:07:16 +0200
commitd40db7077b07001095c0228617b3067716c12940 (patch)
tree4227254fd381f2e2f742d6440e7ec592a0ad18a3 /server/src/commands
parentmisc server changes and new modules (diff)
downloadhackchat-d40db7077b07001095c0228617b3067716c12940.tar.gz
hackchat-d40db7077b07001095c0228617b3067716c12940.zip
Fixed changenick command, userExists now works.
Diffstat (limited to 'server/src/commands')
-rw-r--r--server/src/commands/core/changenick.js2
1 files changed, 1 insertions, 1 deletions
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()
});