Changeset

7427:bf43a08e5a74

MUC: Send participant list and subject on explicit joins (thanks daurnimator)
author Kim Alvefur <zash@zash.se>
date Sun, 15 May 2016 16:55:19 +0200
parents 7426:3a90e9732204
children 7429:713d6f8e84d0
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Sat May 14 22:36:37 2016 +0200
+++ b/plugins/muc/muc.lib.lua	Sun May 15 16:55:19 2016 +0200
@@ -577,7 +577,7 @@
 		end
 		self:save_occupant(dest_occupant);
 
-		if orig_occupant == nil then
+		if orig_occupant == nil or muc_x then
 			-- Send occupant list to newly joined user
 			self:send_occupant_list(real_jid, function(nick, occupant) -- luacheck: ignore 212
 				-- Don't include self
@@ -598,7 +598,7 @@
 			self:route_stanza(pr);
 		end
 
-		if orig_occupant == nil then
+		if orig_occupant == nil or muc_x then
 			if is_first_dest_session then
 				module:fire_event("muc-occupant-joined", {
 					room = self;