Diff

mod_vcard_muc/mod_vcard_muc.lua @ 3046:d0db28768980

mod_vcard_muc: Send presence on muc-occupant-session-new event
author Michel Le Bihan <michel@lebihan.pl>
date Sat, 26 May 2018 10:58:06 +0200
parent 3043:6cc44e69443a
child 3077:f16b021e8a61
line wrap: on
line diff
--- 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)