1
0
mirror of https://github.com/hack-chat/main.git synced 2024-03-22 13:20:33 +08:00

Added hashes into each socket

Added implicit declaration of hashes into each socket while the user joins.
This commit is contained in:
OpSimple 2018-06-01 01:04:39 +05:30 committed by GitHub
parent 63bd6fb714
commit cf9fd316e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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'
};
};