aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-08-16 15:34:58 +0200
committerKim Alvefur <zash@zash.se>2018-08-16 15:34:58 +0200
commit8121e242b060b4024452750e6c8643cb31dfca4e (patch)
tree099cbeccc87db618421ca991c9916c813360e188 /plugins/mod_pep.lua
parent533cefaaf10bed012cbfb1f92cc9a7a5235bfec0 (diff)
downloadprosody-8121e242b060b4024452750e6c8643cb31dfca4e.tar.gz
prosody-8121e242b060b4024452750e6c8643cb31dfca4e.zip
mod_pep: Respect settings for which kinds of notifications to send
Diffstat (limited to 'plugins/mod_pep.lua')
-rw-r--r--plugins/mod_pep.lua7
1 files changed, 6 insertions, 1 deletions
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 <items> container
end