From 8bb7f9d9baf3d2b00b9e8a0286ef32eaa1ddabdd Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 29 May 2022 12:28:58 +0100 Subject: [PATCH] EDDN/fssbodysignals: Add location paranoia check --- plugins/eddn.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugins/eddn.py b/plugins/eddn.py index 0bca62a9..df6fdab2 100644 --- a/plugins/eddn.py +++ b/plugins/eddn.py @@ -1248,7 +1248,12 @@ class EDDN: ####################################################################### # Augmentations ####################################################################### - # In this case should add StarPos + # In this case should add SystemName and StarPos, but only if the + # SystemAddress of where we think we are matches. + if this.systemaddress is None or this.systemaddress != entry['SystemAddress']: + logger.warning("SystemAddress isn't current location! Can't add augmentations!") + return 'Wrong System! Missed jump ?' + ret = this.eddn.entry_augment_system_data(entry, system_name, system_starpos) if isinstance(ret, str): return ret @@ -1610,6 +1615,7 @@ def journal_entry( # noqa: C901, CCR001 is_beta, entry ) + elif event_name == 'fssbodysignals': return this.eddn.export_journal_fssbodysignals( cmdr,