From 6a29dd5a8deee46f7bf476d1aeaf594a6961db0a Mon Sep 17 00:00:00 2001 From: Shoghi Cervantes Pueyo Date: Tue, 19 Mar 2013 18:59:44 +0100 Subject: [PATCH] Ghost players don't leave a quit message --- src/Player.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Player.php b/src/Player.php index f8e0721e..45f43ee9 100644 --- a/src/Player.php +++ b/src/Player.php @@ -214,7 +214,7 @@ class Player{ $this->queue = null; unset($this->queue); $this->connected = false; - if($msg === true){ + if($msg === true and $this->username != ""){ $this->server->api->chat->broadcast($this->username." left the game"); } console("[INFO] Session with \x1b[36m".$this->ip.":".$this->port."\x1b[0m Client ID ".$this->clientID." closed due to ".$reason);