From 02649b8c6ffc6e59667835809dfd737c87420879 Mon Sep 17 00:00:00 2001
From: Bernd Gollesch <bgollesch@speed.at>
Date: Sat, 2 May 2020 15:02:09 +0200
Subject: [PATCH] there is also a 'Factions' list in the 'CarrierJump' event

---
 plugins/inara.py | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/plugins/inara.py b/plugins/inara.py
index 35330bee..0085c848 100644
--- a/plugins/inara.py
+++ b/plugins/inara.py
@@ -387,6 +387,14 @@ def journal_entry(cmdr, is_beta, system, station, entry, state):
                               ('stationName', entry['StationName']),
                               ('marketID', entry['MarketID']),
                           ]))
+                if entry.get('Factions'):
+                    add_event('setCommanderReputationMinorFaction', entry['timestamp'],
+                              [
+                                  OrderedDict([
+                                      ('minorfactionName', f['Name']),
+                                      ('minorfactionReputation', f['MyReputation']/100.0),
+                                  ]) for f in entry['Factions']
+                              ])
                 # Ignore the following 'Docked' event
                 this.suppress_docked = True