Merge pull request #11414 from Markolie/pai

pAI admin message fix
This commit is contained in:
variableundefined
2019-04-30 11:33:18 +08:00
committed by GitHub
@@ -28,7 +28,7 @@ var/datum/paiController/paiController // Global handler for pAI candidates
if(candidate)
if(!istype(candidate))
message_admins("Warning: possible href exploit by [key_name(usr)] (paiController/Topic, candidate is not a pAI)")
message_admins("Warning: possible href exploit by [key_name_admin(usr)] (paiController/Topic, candidate is not a pAI)")
log_debug("Warning: possible href exploit by [key_name(usr)] (paiController/Topic, candidate is not a pAI)")
return
@@ -55,7 +55,7 @@ var/datum/paiController/paiController // Global handler for pAI candidates
pai_candidates -= candidate
usr << browse(null, "window=findPai")
return
if("signup" in href_list)
var/mob/dead/observer/O = locate(href_list["signup"])
@@ -71,8 +71,8 @@ var/datum/paiController/paiController // Global handler for pAI candidates
if(candidate)
if(candidate.key && usr.key && candidate.key != usr.key)
message_admins("Warning: possible href exploit by [key_name(usr)] (paiController/Topic, candidate and usr are different mobs)")
log_debug("Warning: possible href exploit by [key_name(usr)] (paiController/Topic, candidate and usr are different mobs)")
message_admins("Warning: possible href exploit by [key_name_admin(usr)] (paiController/Topic, candidate and usr have different keys)")
log_debug("Warning: possible href exploit by [key_name(usr)] (paiController/Topic, candidate and usr have different keys)")
return
if(href_list["new"])