aboutsummaryrefslogtreecommitdiffstats
path: root/server/src
diff options
context:
space:
mode:
authorOpSimple <35542206+OpSimple@users.noreply.github.com>2018-05-31 21:34:39 +0200
committerGitHub <noreply@github.com>2018-05-31 21:34:39 +0200
commitcf9fd316e94fe513a4dbc8a44a5b4e5cddd55a12 (patch)
tree42f6d0df9ef68907a84acfa21006479679506c2b /server/src
parentformatting fix (diff)
downloadhackchat-cf9fd316e94fe513a4dbc8a44a5b4e5cddd55a12.tar.gz
hackchat-cf9fd316e94fe513a4dbc8a44a5b4e5cddd55a12.zip
Added hashes into each socket
Added implicit declaration of hashes into each socket while the user joins.
Diffstat (limited to '')
-rw-r--r--server/src/commands/core/join.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/server/src/commands/core/join.js b/server/src/commands/core/join.js
index f2b2c9d..4875b0e 100644
--- a/server/src/commands/core/join.js
+++ b/server/src/commands/core/join.js
@@ -115,6 +115,7 @@ exports.run = async (core, server, socket, data) => {
socket.uType = uType;
socket.nick = nick;
socket.channel = channel;
+ socket.hash = server.getSocketHash(socket);
if (trip !== null) socket.trip = trip;
nicks.push(socket.nick);
@@ -132,4 +133,4 @@ exports.info = {
name: 'join',
usage: 'join {channel} {nick}',
description: 'Place calling socket into target channel with target nick & broadcast event to channel'
-}; \ No newline at end of file
+};