aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
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
commitc083a55ca54508f51320cc412c544c481ba25fd1 (patch)
tree89db1c0ce3d46ddecb44ec21d9a49efb1defa164 /plugins
parenta9e9c490274549c48680a8bf699806a1e069845e (diff)
downloadprosody-c083a55ca54508f51320cc412c544c481ba25fd1.tar.gz
prosody-c083a55ca54508f51320cc412c544c481ba25fd1.zip
mod_presence: Remove unnecessary stanza clone call
Diffstat (limited to 'plugins')
-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