[s] Fix an exploit involving air alarms. (#32171)

* Fix an exploit involving air alarms.

* Apply sug

Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
Signed-off-by: Alan <alfalfascout@users.noreply.github.com>

---------

Signed-off-by: Alan <alfalfascout@users.noreply.github.com>
Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com>
This commit is contained in:
Alan
2026-06-26 18:28:34 -04:00
committed by GitHub
parent a9a7816b13
commit 82062b5d05
@@ -872,6 +872,9 @@ GLOBAL_LIST_INIT(aalarm_modes, list(
to_chat(user, SPAN_WARNING("AI control for \the [src] interface has been disabled."))
return UI_CLOSE
if(rcon_setting == RCON_NO && !Adjacent(user) && !issilicon(user))
return UI_DISABLED
. = shorted ? UI_DISABLED : UI_INTERACTIVE
return min(..(), .)