From cf9fd316e94fe513a4dbc8a44a5b4e5cddd55a12 Mon Sep 17 00:00:00 2001 From: OpSimple <35542206+OpSimple@users.noreply.github.com> Date: Fri, 1 Jun 2018 01:04:39 +0530 Subject: Added hashes into each socket Added implicit declaration of hashes into each socket while the user joins. --- server/src/commands/core/join.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 +}; -- cgit v1.2.1