From 9fd3c3852a39f64efe9928b47be95d784a62e459 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 29 May 2022 15:36:42 +0100 Subject: [PATCH] eddn: journal: Add SystemAddress cross-check to StarSystem augmentation --- plugins/eddn.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/plugins/eddn.py b/plugins/eddn.py index 2e219541..bc043926 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -1712,6 +1712,10 @@ def journal_entry( # noqa: C901, CCR001 # add mandatory StarSystem and StarPos properties to events if 'StarSystem' not in entry: + if this.systemaddress is None or this.systemaddress != entry['SystemAddress']: + logger.warning("event has no StarSystem, but SystemAddress isn't current location") + return "Wrong System! Delayed Scan event?" + if not system: logger.warning("system is falsey, can't add StarSystem") return "system is falsey, can't add StarSystem"