diff options
author | Kim Alvefur <zash@zash.se> | 2018-12-02 17:20:44 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-12-02 17:20:44 +0100 |
commit | e984432ca4a85a2e9abef99b667731d8541ed662 (patch) | |
tree | 89db1c0ce3d46ddecb44ec21d9a49efb1defa164 | |
parent | c9f3911bd2825c3048c2e04bb328f6dbaab5db14 (diff) | |
download | prosody-e984432ca4a85a2e9abef99b667731d8541ed662.tar.gz prosody-e984432ca4a85a2e9abef99b667731d8541ed662.zip |
mod_presence: Remove unnecessary stanza clone call
-rw-r--r-- | plugins/mod_presence.lua | 2 |
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 |