aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_pep.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2009-10-22 02:13:02 +0500
committerWaqas Hussain <waqas20@gmail.com>2009-10-22 02:13:02 +0500
commit6c53a43802b38a0baa36b1390d645537c6730cfb (patch)
tree390a789fb8ffd4898b10a17603d95c4de9f9ecce /plugins/mod_pep.lua
parent64206e36450b27e5f4c88b66e5ad81eab3108389 (diff)
downloadprosody-6c53a43802b38a0baa36b1390d645537c6730cfb.tar.gz
prosody-6c53a43802b38a0baa36b1390d645537c6730cfb.zip
PEP: Clone payloads to allow plugins to reuse stanzas.
Diffstat (limited to 'plugins/mod_pep.lua')
-rw-r--r--plugins/mod_pep.lua2
1 files changed, 1 insertions, 1 deletions
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 -- <item>
- publish(session, node, payload);
+ publish(session, node, st.clone(payload));
session.send(st.reply(stanza));
return true;
end