summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-05-30 19:59:40 +0200
committerGravatar grunfink2025-05-30 19:59:40 +0200
commitc8848f6e9f8e9fd9d17290b1ef301d3bf7beccb4 (patch)
treec60522d8933a3e9cece47f571d1a78e578180625 /data.c
parentUpdated documentation. (diff)
downloadsnac2-c8848f6e9f8e9fd9d17290b1ef301d3bf7beccb4.tar.gz
snac2-c8848f6e9f8e9fd9d17290b1ef301d3bf7beccb4.tar.xz
snac2-c8848f6e9f8e9fd9d17290b1ef301d3bf7beccb4.zip
More webhook checks.
Diffstat (limited to 'data.c')
-rw-r--r--data.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/data.c b/data.c
index 28f7cd9..6c38631 100644
--- a/data.c
+++ b/data.c
@@ -3529,7 +3529,7 @@ void enqueue_notify_webhook(snac *user, const xs_dict *noti, int retries)
3529{ 3529{
3530 const char *webhook = xs_dict_get(user->config, "notify_webhook"); 3530 const char *webhook = xs_dict_get(user->config, "notify_webhook");
3531 3531
3532 if (xs_is_string(webhook) && *webhook) { 3532 if (xs_is_string(webhook) && xs_match(webhook, "https://*|http://*")) { /** **/
3533 xs *msg = xs_dup(noti); 3533 xs *msg = xs_dup(noti);
3534 3534
3535 /* add more data */ 3535 /* add more data */