aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_presence.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2019-01-17 01:09:38 +0100
committerKim Alvefur <zash@zash.se>2019-01-17 01:09:38 +0100
commit7c37b45daa03dfbf3acc44c85ab5d54d025a3187 (patch)
tree49240ef320cc0bdd0d6a974125e16e7a99ccdbb0 /plugins/mod_presence.lua
parent2d229c341839f408fd64dd02be2524bb7f121eda (diff)
parent9fa98ab579800de8d4d51ccc93765ca6cc4ad47b (diff)
downloadprosody-7c37b45daa03dfbf3acc44c85ab5d54d025a3187.tar.gz
prosody-7c37b45daa03dfbf3acc44c85ab5d54d025a3187.zip
Merge 0.11->trunk
Diffstat (limited to 'plugins/mod_presence.lua')
-rw-r--r--plugins/mod_presence.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua
index 5aed5854..f7f458ca 100644
--- a/plugins/mod_presence.lua
+++ b/plugins/mod_presence.lua
@@ -63,6 +63,7 @@ function handle_normal_presence(origin, stanza)
core_post_stanza(origin, stanza, true);
end
end
+ stanza.attr.to = nil;
if stanza.attr.type == nil and not origin.presence then -- initial presence
module:fire_event("presence/initial", { origin = origin, stanza = stanza } );
origin.presence = stanza; -- FIXME repeated later