PEP: Send publish IQ result before broadcast.

This commit is contained in:
Waqas Hussain 2009-10-22 02:26:06 +05:00
parent 6a1146aeef
commit 8ca1f81738

View file

@ -134,8 +134,8 @@ module:hook("iq/bare/http://jabber.org/protocol/pubsub:pubsub", function(event)
local node = payload.attr.node;
payload = payload.tags[1];
if payload and payload.name == "item" then -- <item>
publish(session, node, st.clone(payload));
session.send(st.reply(stanza));
publish(session, node, st.clone(payload));
return true;
end
end