aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commit8d28daa0aee129106ec422f7f6b068dada7a49ed (patch)
treef8ca73019d50f9f507e806c4d1b703eb51ee2599 /plugins
parent9b9336e8b826a257576771011959990bee31e31e (diff)
downloadprosody-8d28daa0aee129106ec422f7f6b068dada7a49ed.tar.gz
prosody-8d28daa0aee129106ec422f7f6b068dada7a49ed.zip
mod_pubsub: Use moduleapi broadcast method
Diffstat (limited to 'plugins')
-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)