From bfbc458f37260cb9b9fa8be8576397b759a6c945 Mon Sep 17 00:00:00 2001 From: Samantha Wright Date: Thu, 10 Jul 2025 04:10:33 -0700 Subject: [PATCH] dispatch support --- ARES/system/power.lsl | 5 ++++- ARES/system/security.lsl | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/ARES/system/power.lsl b/ARES/system/power.lsl index 2860983..47f0bf6 100644 --- a/ARES/system/power.lsl +++ b/ARES/system/power.lsl @@ -374,7 +374,7 @@ main(integer src, integer n, string m, key outs, key ins, key user) { return; } - integer viable = FALSE; + integer viable = FALSE; // desired power change is possible integer new_state = (sys == "on"); if(!new_state && sys != "off") { @@ -609,6 +609,9 @@ main(integer src, integer n, string m, key outs, key ins, key user) { } notify_program("security power", outs, NULL_KEY, user); + if(llGetInventoryType("dispatch") == INVENTORY_SCRIPT) { + notify_program("dispatch power", outs, NULL_KEY, user); + } llSleep(0.5); diff --git a/ARES/system/security.lsl b/ARES/system/security.lsl index 46f8af8..12e07eb 100644 --- a/ARES/system/security.lsl +++ b/ARES/system/security.lsl @@ -129,6 +129,10 @@ main(integer src, integer n, string m, key outs, key ins, key user) { s_msg = "You have been denied access to " + callsign + " indefinitely."; } + if(llGetInventoryType("dispatch") == INVENTORY_SCRIPT) { + notify_program("dispatch security " + action, subject, NULL_KEY, subject); + } + print(s_outs, subject, s_msg); if(recognition_inhibited && (action == "yes" || action == "trust"))