From 3ad6c773a3f3a808ccafe753a722481d5ff49529 Mon Sep 17 00:00:00 2001 From: kremsy Date: Wed, 19 Mar 2014 19:54:40 +0100 Subject: [PATCH] temp fix --- application/core/Players/PlayerActions.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/application/core/Players/PlayerActions.php b/application/core/Players/PlayerActions.php index 421e088d..97b01cb6 100644 --- a/application/core/Players/PlayerActions.php +++ b/application/core/Players/PlayerActions.php @@ -194,14 +194,14 @@ class PlayerActions { try { $this->maniaControl->client->spectatorReleasePlayerSlot($target->login); } catch(Exception $e) { - if ($e->getMessage() == 'The player is not a spectator') { - $this->kickPlayer($adminLogin, $targetLogin, 'Disconnect'); - $this->maniaControl->errorHandler->triggerDebugNotice("inaktiv spec player kicked " . $e->getMessage()); - } else { + //if ($e->getMessage() == 'The player is not a spectator') { + //$this->kickPlayer($adminLogin, $targetLogin, 'Disconnect'); + //$this->maniaControl->errorHandler->triggerDebugNotice("inaktiv spec player kicked " . $e->getMessage()); + //} else { $this->maniaControl->errorHandler->triggerDebugNotice("PlayerActions Debug Line 183: " . $e->getMessage()); // TODO: only possible valid exception should be "wrong login" - throw others (like connection error) //do nothing - } + //} } } }