exception fix

This commit is contained in:
kremsy
2014-04-14 19:50:56 +02:00
committed by Steffen Schröder
parent cf12c8af43
commit 2db2c88554
2 changed files with 5 additions and 4 deletions

View File

@ -192,8 +192,9 @@ class PlayerActions {
try {
$this->maniaControl->client->spectatorReleasePlayerSlot($target->login);
} catch(Exception $e) {
$this->maniaControl->chat->sendException($e, $admin->login);
return;
if($e->getMessage() != "The player is not a spectator"){
throw $e;
}
}
}
}