mirror of
https://github.com/danbulant/flying-squid
synced 2026-07-07 04:00:46 +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', () => {
|
player._client.on('end', () => {
|
||||||
if(player) {
|
if(player && player.username) {
|
||||||
serv.broadcast(serv.color.yellow + player.username + ' quit the game.');
|
serv.broadcast(serv.color.yellow + player.username + ' quit the game.');
|
||||||
player._writeOthers('player_info', {
|
player._writeOthers('player_info', {
|
||||||
action: 4,
|
action: 4,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue