exception fix
This commit is contained in:
parent
20c07a9646
commit
4ff88a1204
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user