mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-25 21:19:00 +01:00
support running saved sdql scripts (#29480)
* support running saved sdql scripts * Update code/modules/admin/verbs/SDQL2/SDQL_2.dm Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Signed-off-by: warriorstar-orion <orion@snowfrost.garden> --------- Signed-off-by: warriorstar-orion <orion@snowfrost.garden> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com>
This commit is contained in:
co-authored by
AffectedArc07
parent
0bd0b6d800
commit
72a4ec7dc9
@@ -28,6 +28,14 @@
|
||||
if(!query_text || length(query_text) < 1)
|
||||
return
|
||||
|
||||
run_sdql2_query(query_text)
|
||||
|
||||
/client/proc/run_sdql2_query(query_text)
|
||||
if(!check_rights(R_PROCCALL)) //Shouldn't happen... but just to be safe.
|
||||
message_admins("<span class='danger'>ERROR: Non-admin [key_name_admin(usr)] attempted to execute an SDQL query!</span>")
|
||||
log_admin("Non-admin [key_name(usr)] attempted to execute an SDQL query: [query_text]")
|
||||
return
|
||||
|
||||
// to_chat(world, query_text)
|
||||
|
||||
var/list/query_list = SDQL2_tokenize(query_text)
|
||||
|
||||
Reference in New Issue
Block a user