# HG changeset patch # User Waqas Hussain # Date 1256159582 -18000 # Node ID 34e6e06dd089da55aba9fa9bd6bc83a32dc30eaf # Parent 8cf9b978ab365f9f6c9432483d978bd46dc1da87 PEP: Clone payloads to allow plugins to reuse stanzas. diff -r 8cf9b978ab36 -r 34e6e06dd089 plugins/mod_pep.lua --- a/plugins/mod_pep.lua Thu Oct 22 02:12:24 2009 +0500 +++ b/plugins/mod_pep.lua Thu Oct 22 02:13:02 2009 +0500 @@ -134,7 +134,7 @@ 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