mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-11 15:14:27 +01:00
whatever (#25717)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user