aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-12-02 17:20:44 +0100
committerKim Alvefur <zash@zash.se>2018-12-02 17:20:44 +0100
commite984432ca4a85a2e9abef99b667731d8541ed662 (patch)
tree89db1c0ce3d46ddecb44ec21d9a49efb1defa164
parentc9f3911bd2825c3048c2e04bb328f6dbaab5db14 (diff)
downloadprosody-e984432ca4a85a2e9abef99b667731d8541ed662.tar.gz
prosody-e984432ca4a85a2e9abef99b667731d8541ed662.zip
mod_presence: Remove unnecessary stanza clone call
-rw-r--r--plugins/mod_presence.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua
index 51254c63..1ea837e8 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -81,7 +81,7 @@ function handle_normal_presence(origin, stanza)
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