From 846a027b6fb87d14693292a9a2f45df6e404556b Mon Sep 17 00:00:00 2001 From: Mark Suckerberg Date: Sat, 9 Nov 2024 17:55:21 -0600 Subject: [PATCH] [s] Blocks RUSTG Proccalls (#3724) ## About The Pull Request Basically ParadiseSS13/Paradise#27327 --- code/modules/admin/callproc/callproc.dm | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/code/modules/admin/callproc/callproc.dm b/code/modules/admin/callproc/callproc.dm index 0fbae3fe55d2..8e99b47573ac 100644 --- a/code/modules/admin/callproc/callproc.dm +++ b/code/modules/admin/callproc/callproc.dm @@ -90,6 +90,12 @@ GLOBAL_PROTECT(LastAdminCalledProc) to_chat(usr, "Calling Del() is not allowed", confidential = TRUE) return + if(findtextEx(trim(lowertext(procname)), "rustg")) + var/message = "[key_name(usr)] attempted to call [procname] with arguments: [english_list(arguments)]. Rustg calls are not allowed." + log_admin_private(message) + message_admins(message) + return + if(target != GLOBAL_PROC && !target.CanProcCall(procname)) to_chat(usr, "Proccall on [target.type]/proc/[procname] is disallowed!", confidential = TRUE) return