Enable only the possible spy actions.

Patch by Sveinung Kvilhaugsvik in patch #4530.