Skip to content

Commit

Permalink
[s] Blocks RUSTG Proccalls (#3724)
Browse files Browse the repository at this point in the history
## About The Pull Request

Basically ParadiseSS13/Paradise#27327
  • Loading branch information
MarkSuckerberg authored Nov 9, 2024
1 parent b552ff8 commit 846a027
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/modules/admin/callproc/callproc.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 846a027

Please sign in to comment.