exception fix

This commit is contained in:
kremsy 2014-04-09 10:42:56 +02:00 committed by Steffen Schröder
parent 20c07a9646
commit 4ff88a1204

View File

@ -369,6 +369,9 @@ class PlayerActions {
$this->maniaControl->client->kick($target->login, $message);
}
} catch(Exception $e) {
if($e == "Login unknown."){
return;
}
// TODO: only possible valid exception should be "wrong login" - throw others (like connection error)
$this->maniaControl->errorHandler->triggerDebugNotice("PlayerActions Debug Line 354: " . $e->getMessage());
$this->maniaControl->chat->sendError('Error occurred: ' . $e->getMessage(), $admin->login);