From aa2285cfb5e4ff7452bb73965398e2da2bcb5fd3 Mon Sep 17 00:00:00 2001 From: Neerti Date: Sat, 12 Dec 2015 10:56:06 -0500 Subject: [PATCH] Fixes admin check in new set_telecrystal proc. --- code/modules/admin/admin.dm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/code/modules/admin/admin.dm b/code/modules/admin/admin.dm index f3daf2c91d..c1cc4f2602 100644 --- a/code/modules/admin/admin.dm +++ b/code/modules/admin/admin.dm @@ -1334,11 +1334,11 @@ proc/admin_notice(var/message, var/rights) var/crystals - if(R_ADMIN) + if(check_rights(R_ADMIN)) crystals = input("Amount of telecrystals for [H.ckey]", crystals) as null|num if (!isnull(crystals)) H.mind.tcrystals = crystals var/msg = "[key_name(usr)] has modified [H.ckey]'s telecrystals to [crystals]." message_admins(msg) else - usr << "You do not have access to this command." \ No newline at end of file + usr << "You do not have access to this command."