Adds SDQL chat command (#33366)

Allow's calling SDQL from bots supporting the CHAT system API
This commit is contained in:
Jordan Brown
2017-12-14 16:43:54 -05:00
committed by CitadelStationBot
parent a22b225015
commit 253a3d519e
3 changed files with 30 additions and 6 deletions
+3 -1
View File
@@ -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)