diff options
-rw-r--r-- | plugins/mod_pubsub/mod_pubsub.lua | 6 |
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) |