aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pubsub.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2012-07-26 04:35:13 +0200
committerKim Alvefur <zash@zash.se>2012-07-26 04:35:13 +0200
commitdf70fc25088c763d2878f796f9628415db79e8c6 (patch)
treeb262fce04e2743e13aa28d39844d2bff7bf354dc /plugins/mod_pubsub.lua
parent9114e88ee0cf86ca0ffe500e089389e54bb730ec (diff)
downloadprosody-df70fc25088c763d2878f796f9628415db79e8c6.tar.gz
prosody-df70fc25088c763d2878f796f9628415db79e8c6.zip
mod_announce, mod_motd, mod_pubsub, mod_register, mod_watchregistrations, mod_welcome: Use module:send() instead of core_*_stanza()
Diffstat (limited to 'plugins/mod_pubsub.lua')
-rw-r--r--plugins/mod_pubsub.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_pubsub.lua b/plugins/mod_pubsub.lua
index 2cbd7184..40b119cc 100644
--- a/plugins/mod_pubsub.lua
+++ b/plugins/mod_pubsub.lua
@@ -201,7 +201,7 @@ function simple_broadcast(node, jids, item)
for jid in pairs(jids) do
module:log("debug", "Sending notification to %s", jid);
message.attr.to = jid;
- core_post_stanza(hosts[module.host], message);
+ module:send(message);
end
end