From 82062b5d05c7cd59302150ae7e242db2fcc2a4a9 Mon Sep 17 00:00:00 2001 From: Alan Date: Fri, 26 Jun 2026 18:28:34 -0400 Subject: [PATCH] [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 --------- Signed-off-by: Alan Co-authored-by: PollardTheDragon <144391971+PollardTheDragon@users.noreply.github.com> --- code/modules/atmospherics/machinery/airalarm.dm | 3 +++ 1 file changed, 3 insertions(+) diff --git a/code/modules/atmospherics/machinery/airalarm.dm b/code/modules/atmospherics/machinery/airalarm.dm index 4f3c6e632f7..127d3170429 100644 --- a/code/modules/atmospherics/machinery/airalarm.dm +++ b/code/modules/atmospherics/machinery/airalarm.dm @@ -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(..(), .)