From 6c53a43802b38a0baa36b1390d645537c6730cfb Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Thu, 22 Oct 2009 02:13:02 +0500 Subject: PEP: Clone payloads to allow plugins to reuse stanzas. --- plugins/mod_pep.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_pep.lua b/plugins/mod_pep.lua index 45cbc9fc..6d2ec436 100644 --- a/plugins/mod_pep.lua +++ b/plugins/mod_pep.lua @@ -134,7 +134,7 @@ module:hook("iq/bare/http://jabber.org/protocol/pubsub:pubsub", function(event) local node = payload.attr.node; payload = payload.tags[1]; if payload then -- - publish(session, node, payload); + publish(session, node, st.clone(payload)); session.send(st.reply(stanza)); return true; end -- cgit v1.2.3