Software /
code /
prosody
Comparison
plugins/mod_pep.lua @ 2044:11efc4aecd55
PEP: Send publish IQ result before broadcast.
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Thu, 22 Oct 2009 02:26:06 +0500 |
parent | 2043:c0784614b66f |
child | 2045:3b7473a3fa44 |
comparison
equal
deleted
inserted
replaced
2043:c0784614b66f | 2044:11efc4aecd55 |
---|---|
132 payload = payload.tags[1]; | 132 payload = payload.tags[1]; |
133 if payload and (payload.name == 'publish' or payload.name == 'retract') and payload.attr.node then -- <publish node='http://jabber.org/protocol/tune'> | 133 if payload and (payload.name == 'publish' or payload.name == 'retract') and payload.attr.node then -- <publish node='http://jabber.org/protocol/tune'> |
134 local node = payload.attr.node; | 134 local node = payload.attr.node; |
135 payload = payload.tags[1]; | 135 payload = payload.tags[1]; |
136 if payload and payload.name == "item" then -- <item> | 136 if payload and payload.name == "item" then -- <item> |
137 session.send(st.reply(stanza)); | |
137 publish(session, node, st.clone(payload)); | 138 publish(session, node, st.clone(payload)); |
138 session.send(st.reply(stanza)); | |
139 return true; | 139 return true; |
140 end | 140 end |
141 end | 141 end |
142 end | 142 end |
143 end | 143 end |