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 = {
|
||||
join: (client) => {
|
||||
if (!client.userData) {
|
||||
return false
|
||||
}
|
||||
|
||||
if (client.connectedRoomID) {
|
||||
console.warn(
|
||||
`[${client.id}][@${client.userData.username}] already connected to room ${client.connectedRoomID}`,
|
||||
|
Loading…
x
Reference in New Issue
Block a user