From 9a3149e9c97bc8fcbcf17f94e9cf1fe3091c19d3 Mon Sep 17 00:00:00 2001 From: Contrabang <91113370+Contrabang@users.noreply.github.com> Date: Fri, 31 May 2024 09:01:42 -0400 Subject: [PATCH] whatever (#25717) --- code/game/machinery/computer/communications.dm | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/code/game/machinery/computer/communications.dm b/code/game/machinery/computer/communications.dm index 36a0a848a2f..f83285fc6af 100644 --- a/code/game/machinery/computer/communications.dm +++ b/code/game/machinery/computer/communications.dm @@ -12,7 +12,7 @@ #define COMM_MSGLEN_MINIMUM 6 #define COMM_CCMSGLEN_MINIMUM 20 -#define ADMIN_CHECK(user) ((check_rights_all(R_ADMIN|R_EVENT, FALSE, user) && authenticated >= COMM_AUTHENTICATION_CENTCOM) || user.can_admin_interact()) +#define ADMIN_CHECK(user) (check_rights_all(R_ADMIN|R_EVENT, FALSE, user) && (authenticated >= COMM_AUTHENTICATION_CENTCOM || user.can_admin_interact())) // The communications computer /obj/machinery/computer/communications @@ -56,10 +56,11 @@ . = ..() /obj/machinery/computer/communications/proc/is_authenticated(mob/user, message = 1) - if(user.can_admin_interact()) - return COMM_AUTHENTICATION_AGHOST - if(ADMIN_CHECK(user)) - return COMM_AUTHENTICATION_CENTCOM + if(check_rights_all(R_ADMIN|R_EVENT, FALSE, user)) + if(user.can_admin_interact()) + return COMM_AUTHENTICATION_AGHOST + if(authenticated == COMM_AUTHENTICATION_CENTCOM) + return COMM_AUTHENTICATION_CENTCOM if(authenticated == COMM_AUTHENTICATION_CAPT) return COMM_AUTHENTICATION_CAPT if(authenticated)