From 93c1672af7f16f4a8fd87609e5ce43cb4d841a2d Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Thu, 16 Aug 2018 15:34:58 +0200 Subject: mod_pep: Respect settings for which kinds of notifications to send --- plugins/mod_pep.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'plugins/mod_pep.lua') diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 777783da..fb4e2f0d 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -123,7 +123,12 @@ end local function get_broadcaster(username) local user_bare = jid_join(username, host); - local function simple_broadcast(kind, node, jids, item) + local function simple_broadcast(kind, node, jids, item, _, node_obj) + if node_obj then + if node_obj.config["notify_"..kind] == false then + return; + end + end if kind == "retract" then kind = "items"; -- XEP-0060 signals retraction in an container end -- cgit v1.2.3