aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authormarzavec <admin@marzavec.com>2018-04-29 18:22:34 +0200
committerGitHub <noreply@github.com>2018-04-29 18:22:34 +0200
commitb341644d93e99ea066156986c899a1fee974bb08 (patch)
tree4227254fd381f2e2f742d6440e7ec592a0ad18a3 /server
parentmisc server changes and new modules (diff)
parentFixed changenick command, userExists now works. (diff)
downloadhackchat-b341644d93e99ea066156986c899a1fee974bb08.tar.gz
hackchat-b341644d93e99ea066156986c899a1fee974bb08.zip
Merge pull request #10 from bacn/master
Fixed changenick command, userExists now works.
Diffstat (limited to 'server')
-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()
});