Comparison

plugins/mod_pep.lua @ 1327:20285e9d71ee

mod_pep: Give the presence handler a higher than default priority
author Waqas Hussain <waqas20@gmail.com>
date Sun, 07 Jun 2009 18:06:01 +0500
parent 1325:b58645973d7d
child 1332:f7fed9f77455
comparison
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