mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 10:34:17 +00:00
abort if no userdata
This commit is contained in:
parent
c237b3b823
commit
12c8431bd7
@ -98,6 +98,10 @@ export default class Room {
|
|||||||
|
|
||||||
handlers = {
|
handlers = {
|
||||||
join: (client) => {
|
join: (client) => {
|
||||||
|
if (!client.userData) {
|
||||||
|
return false
|
||||||
|
}
|
||||||
|
|
||||||
if (client.connectedRoomID) {
|
if (client.connectedRoomID) {
|
||||||
console.warn(
|
console.warn(
|
||||||
`[${client.id}][@${client.userData.username}] already connected to room ${client.connectedRoomID}`,
|
`[${client.id}][@${client.userData.username}] already connected to room ${client.connectedRoomID}`,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user