aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2023-08-06 16:25:52 +0200
committerGravatar Christian Hesse <mail@eworm.de>2023-08-06 16:35:51 +0200
commit0aeb34e5e9cb9ddaee7316b60e0e9eaeadb428d3 (patch)
tree38a8b08c4ce34fb9d463b53577b8e1eb5189f529 /mod
parent9a5d55da0dca37a8e921c411264b4187ba50e3e9 (diff)
mod/notification-matrix: introduce $PurgeMatrixQueue
... to purge the queue and remove the scheduler.
Diffstat (limited to 'mod')
-rw-r--r--mod/notification-matrix.rsc9
1 files changed, 9 insertions, 0 deletions
diff --git a/mod/notification-matrix.rsc b/mod/notification-matrix.rsc
index 16b2370..03cfb13 100644
--- a/mod/notification-matrix.rsc
+++ b/mod/notification-matrix.rsc
@@ -9,6 +9,7 @@
:global FlushMatrixQueue;
:global NotificationFunctions;
+:global PurgeMatrixQueue;
:global SendMatrix;
:global SendMatrix2;
@@ -151,6 +152,14 @@
}
}
+# purge the Matrix queue
+:set PurgeMatrixQueue do={
+ :global MatrixQueue;
+
+ /system/scheduler/remove [ find where name="\$FlushMatrixQueue" ];
+ :set MatrixQueue;
+}
+
# send notification via Matrix - expects at least two string arguments
:set SendMatrix do={
:global SendMatrix2;