diff options
author | Kim Alvefur <zash@zash.se> | 2019-01-17 01:04:39 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2019-01-17 01:04:39 +0100 |
commit | 47f5f3043d485c5056b60f4092ba66e47cf7810d (patch) | |
tree | 3414cf68b706e1cd970eefddaf7f03179af09515 /plugins | |
parent | f4dc2fc86f9e0a28747475fd680d3ccc12f3a453 (diff) | |
download | prosody-47f5f3043d485c5056b60f4092ba66e47cf7810d.tar.gz prosody-47f5f3043d485c5056b60f4092ba66e47cf7810d.zip |
mod_presence: Revert empty 'to' attribute of presence before presence/initial event (fixes #1296)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_presence.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/mod_presence.lua b/plugins/mod_presence.lua index 5056a3a3..268a2f0c 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 |