EDDN/fssbodysignals: Add location paranoia check

This commit is contained in:
Athanasius committed 2022-05-29 12:28:58 +01:00
1 parent 88b3dc27e5
commit 8bb7f9d9ba
1 file changed
+7 -1
+7 -1
View File
@@ -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,