Comparison

plugins/mod_pubsub.lua @ 5014:b2006c1cfa85

mod_announce, mod_motd, mod_pubsub, mod_register, mod_watchregistrations, mod_welcome: Use module:send() instead of core_*_stanza()
author Kim Alvefur <zash@zash.se>
date Thu, 26 Jul 2012 04:35:13 +0200
parent 4795:8a105eb8aeae
child 5304:67a49d47ef39
comparison
equal deleted inserted replaced
5013:ab693eea0869 5014:b2006c1cfa85
199 :tag("items", { node = node }) 199 :tag("items", { node = node })
200 :add_child(item); 200 :add_child(item);
201 for jid in pairs(jids) do 201 for jid in pairs(jids) do
202 module:log("debug", "Sending notification to %s", jid); 202 module:log("debug", "Sending notification to %s", jid);
203 message.attr.to = jid; 203 message.attr.to = jid;
204 core_post_stanza(hosts[module.host], message); 204 module:send(message);
205 end 205 end
206 end 206 end
207 207
208 module:hook("iq/host/http://jabber.org/protocol/pubsub:pubsub", handle_pubsub_iq); 208 module:hook("iq/host/http://jabber.org/protocol/pubsub:pubsub", handle_pubsub_iq);
209 209