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 |