# HG changeset patch # User Michel Le Bihan # Date 1527325086 -7200 # Node ID d0db28768980856a0ee5fa64aca509b5a42b9fc4 # Parent 26977c4760f527c330be60e973650feb2b77f691 mod_vcard_muc: Send presence on muc-occupant-session-new event diff -r 26977c4760f5 -r d0db28768980 mod_vcard_muc/mod_vcard_muc.lua --- a/mod_vcard_muc/mod_vcard_muc.lua Fri May 25 00:18:46 2018 +0200 +++ b/mod_vcard_muc/mod_vcard_muc.lua Sat May 26 10:58:06 2018 +0200 @@ -87,5 +87,8 @@ module:hook("muc-disco#info", function(event) event.reply:tag("feature", { var = "vcard-temp" }):up(); - broadcast_presence(event.room.jid, event.reply.attr.to); end); + +module:hook("muc-occupant-session-new", function(event) + broadcast_presence(event.room.jid, event.jid); +end)