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:
parent
63bd6fb714
commit
cf9fd316e9
@ -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'
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user