OHHHHHHHHHHHHH GOD (#27327)

This commit is contained in:
AffectedArc07
2024-11-09 20:38:37 +00:00
committed by GitHub
parent ca50656a51
commit dc6a068bc8
+7
View File
@@ -52,6 +52,13 @@ But you can call procs that are of type /mob/living/carbon/human/proc/ for that
var/procname = clean_input("Proc path, eg: /proc/fake_blood","Path:", null)
if(!procname) return
// absolutely not
if(findtextEx(trim(lowertext(procname)), "rustg"))
message_admins("<span class='userdanger'>[key_name_admin(src)] attempted to proc call rust-g procs. Inform the host <u>at once</u>.</span>")
log_admin("[key_name(src)] attempted to proc call rust-g procs. Inform the host at once.")
GLOB.discord_manager.send2discord_simple(DISCORD_WEBHOOK_ADMIN, "[key_name(src)] attempted to proc call rustg things. Inform the host at once.")
return
if(targetselected && !hascall(target,procname))
to_chat(usr, "<font color='red'>Error: callproc(): target has no such call [procname].</font>")
return