Fixes my oldish badcode. (#11781)

This commit is contained in:
Putnam3145
2020-04-09 05:48:58 -07:00
committed by GitHub
parent 7cb2057bb0
commit 5078b5875a
5 changed files with 39 additions and 45 deletions
+2 -3
View File
@@ -1732,9 +1732,8 @@
var/mob/M = locate(href_list["makeeligible"])
if(!ismob(M))
to_chat(usr, "this can only be used on instances of type /mob.")
var/datum/element/ghost_role_eligibility/eli = SSdcs.GetElement(list(/datum/element/ghost_role_eligibility))
if(M.ckey in eli.timeouts)
eli.timeouts -= M.ckey
if(M.ckey in GLOB.client_ghost_timeouts)
GLOB.client_ghost_timeouts -= M.ckey
else if(href_list["sendtoprison"])
if(!check_rights(R_ADMIN))