From 4ff88a120410277b9d6222d6da811ce937799020 Mon Sep 17 00:00:00 2001 From: kremsy Date: Wed, 9 Apr 2014 10:42:56 +0200 Subject: [PATCH] exception fix --- application/core/Players/PlayerActions.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/application/core/Players/PlayerActions.php b/application/core/Players/PlayerActions.php index 97b01cb6..d13426dd 100644 --- a/application/core/Players/PlayerActions.php +++ b/application/core/Players/PlayerActions.php @@ -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);