plugins/mod_pep.lua

changeset 1327
20285e9d71ee
parent 1325
b58645973d7d
child 1332
f7fed9f77455
equal deleted inserted replaced
1326:4f1994f7bd54 1327:20285e9d71ee
59 origin.send(message); 59 origin.send(message);
60 end 60 end
61 end 61 end
62 end 62 end
63 end 63 end
64 end); 64 end, 10);
65 65
66 module:add_iq_handler("c2s", "http://jabber.org/protocol/pubsub", function (session, stanza) 66 module:add_iq_handler("c2s", "http://jabber.org/protocol/pubsub", function (session, stanza)
67 if stanza.attr.type == 'set' and (not stanza.attr.to or jid_bare(stanza.attr.from) == stanza.attr.to) then 67 if stanza.attr.type == 'set' and (not stanza.attr.to or jid_bare(stanza.attr.from) == stanza.attr.to) then
68 local payload = stanza.tags[1]; 68 local payload = stanza.tags[1];
69 if payload.name == 'pubsub' then 69 if payload.name == 'pubsub' then

mercurial