Plus a function like this could tell you which player in a faction launched an attack, and possibly with which ship.
With some tweaking as to how well you can track players or ships, perhaps allowing you to scan for a player in a system, we might have some sweet player interaction scenarios.