Hi La vache,
the setting did not revert because you were detected again (see tenth line from below in your post).
The script counts how many messages you sent, how many ships you sunk, how many aircrafts you shot down,... Based on these numbers a probability is calculated for being detected/hunted.
It does not take into account when these things happened during a patrol, i.e., the probability can only increase during a patrol.
Actually, it might be a good idea to also take the time into account and neglect events older than, e.g., 14 days
I guess that's for V6
Let's see when I will find time for this improvement!
Regards, LGN1
PS: In V4 was a bug that prevented the airstrike setting to revert even when not being detected. That bug was what I was refering to in my earlier posts.