Adds SDQL chat command (#33366)
Allow's calling SDQL from bots supporting the CHAT system API
This commit is contained in:
committed by
CitadelStationBot
parent
a22b225015
commit
253a3d519e
@@ -110,7 +110,9 @@ GLOBAL_PROTECT(LastAdminCalledProc)
|
||||
|
||||
/proc/WrapAdminProcCall(target, procname, list/arguments)
|
||||
var/current_caller = GLOB.AdminProcCaller
|
||||
var/ckey = usr.client.ckey
|
||||
var/ckey = usr ? usr.client.ckey : GLOB.AdminProcCaller
|
||||
if(!ckey)
|
||||
CRASH("WrapAdminProcCall with no ckey: [target] [procname] [english_list(arguments)]")
|
||||
if(current_caller && current_caller != ckey)
|
||||
to_chat(usr, "<span class='adminnotice'>Another set of admin called procs are still running, your proc will be run after theirs finish.</span>")
|
||||
UNTIL(!GLOB.AdminProcCaller)
|
||||
|
||||
Reference in New Issue
Block a user