Changeset

9676:837ba29aaeff

mod_presence: Remove unnecessary stanza clone call
author Kim Alvefur <zash@zash.se>
date Sun, 02 Dec 2018 17:20:44 +0100
parents 9675:7d8e08f80dbd
children 9677:d0cc1c4e1a1c
files plugins/mod_presence.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/mod_presence.lua	Sun Dec 02 02:38:36 2018 +0100
+++ b/plugins/mod_presence.lua	Sun Dec 02 17:20:44 2018 +0100
@@ -81,7 +81,7 @@
 			end
 		end
 		for jid, pending_request in pairs(roster[false].pending) do -- resend incoming subscription requests
-			local subscribe = st.clone(st.deserialize(pending_request));
+			local subscribe = st.deserialize(pending_request);
 			subscribe.attr.type, subscribe.attr.from = "subscribe", jid;
 			origin.send(subscribe);
 		end