mirror of
https://github.com/danbulant/flying-squid
synced 2026-06-19 14:31:17 +00:00
fix undefined disconnected
This commit is contained in:
parent
fed2208809
commit
b39072ebb2
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ module.exports.player=function(player,serv)
|
|||
});
|
||||
|
||||
player._client.on('end', () => {
|
||||
if(player) {
|
||||
if(player && player.username) {
|
||||
serv.broadcast(serv.color.yellow + player.username + ' quit the game.');
|
||||
player._writeOthers('player_info', {
|
||||
action: 4,
|
||||
|
|
|
|||
Loading…
Reference in a new issue