aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub/mod_pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-05-21 01:25:10 +0200
committerKim Alvefur <zash@zash.se>2018-05-21 01:25:10 +0200
commit1700e2669abff791ed57f3bfe167892a4c33c661 (patch)
treef8ca73019d50f9f507e806c4d1b703eb51ee2599 /plugins/mod_pubsub/mod_pubsub.lua
parent20f0730255443d1e7ccb54c97cb49ca00cae9fab (diff)
downloadprosody-1700e2669abff791ed57f3bfe167892a4c33c661.tar.gz
prosody-1700e2669abff791ed57f3bfe167892a4c33c661.zip
mod_pubsub: Use moduleapi broadcast method
Diffstat (limited to 'plugins/mod_pubsub/mod_pubsub.lua')
-rw-r--r--plugins/mod_pubsub/mod_pubsub.lua6
1 files changed, 1 insertions, 5 deletions
diff --git a/plugins/mod_pubsub/mod_pubsub.lua b/plugins/mod_pubsub/mod_pubsub.lua
index d3d5f59f..e4e0d406 100644
--- a/plugins/mod_pubsub/mod_pubsub.lua
+++ b/plugins/mod_pubsub/mod_pubsub.lua
@@ -52,11 +52,7 @@ function simple_broadcast(kind, node, jids, item, actor)
:tag("event", { xmlns = xmlns_pubsub_event })
:tag(kind, { node = node })
:add_child(item);
- for jid in pairs(jids) do
- module:log("debug", "Sending notification to %s", jid);
- message.attr.to = jid;
- module:send(message);
- end
+ module:broadcast(jids, message, pairs);
end
function is_item_stanza(item)