The game doesn't care. In real life a sub would be ordered to make a report and
not attack because at that particular time they didn't want the enemy to know they were being watched. Onkel Neal posted a link to the
Silent Service episode on USS
Cavalla and that very problem, and the effect it had on officers and crew.
http://www.subsim.com/radioroom/showthread.php?t=212229