plugins/mod_presence.lua
branch0.11
changeset 9792 f47b2ab877d0
parent 8731 41c959c5c84b
child 9794 4a419089ad00
--- a/plugins/mod_presence.lua	Thu Jan 10 13:07:22 2019 +0100
+++ b/plugins/mod_presence.lua	Thu Jan 17 01:04:39 2019 +0100
@@ -63,6 +63,7 @@
 			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