Comparison

plugins/mod_pubsub.lua @ 5024:d25e1b9332cc

Merge with Florob
author Matthew Wild <mwild1@gmail.com>
date Sat, 28 Jul 2012 01:14:31 +0100
parent 5014:b2006c1cfa85
child 5304:67a49d47ef39
comparison
equal deleted inserted replaced
5023:dcc8e789df36 5024:d25e1b9332cc
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