plugins/mod_pubsub.lua

changeset 3621
7e1a1dd42088
parent 3619
291ae816d800
child 3622
418354197a02
equal deleted inserted replaced
3620:bfc47564aaef 3621:7e1a1dd42088
85 message.attr.to = jid; 85 message.attr.to = jid;
86 core_post_stanza(hosts[module.host], message); 86 core_post_stanza(hosts[module.host], message);
87 end 87 end
88 end 88 end
89 89
90 module:hook("iq/host/http://jabber.org/protocol/pubsub:pubsub", handle_pubsub_iq);
91
90 service = pubsub.new({ 92 service = pubsub.new({
91 broadcaster = simple_broadcast 93 broadcaster = simple_broadcast
92 }); 94 });
95 _M.service = service;
93 96
94 module:hook("iq/host/http://jabber.org/protocol/pubsub:pubsub", handle_pubsub_iq);

mercurial