Changeset

9022:293ebfed71f7

MUC: Simplify creation of <{muc}x> for room creation It’s only sent to the creator so no need to have separate variants for different kinds of participants.
author Kim Alvefur <zash@zash.se>
date Thu, 12 Jul 2018 01:23:19 +0200
parents 9021:548ba4090012
children 9023:ce461a67d2cc
files plugins/muc/muc.lib.lua
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/plugins/muc/muc.lib.lua	Wed Jul 11 11:58:25 2018 +0100
+++ b/plugins/muc/muc.lib.lua	Thu Jul 12 01:23:19 2018 +0200
@@ -439,14 +439,12 @@
 	if self:get_whois() == "anyone" then
 		dest_x:tag("status", {code = "100"}):up();
 	end
-	local self_x;
 	if nick_changed then
-		self_x = st.clone(dest_x);
-		self_x:tag("status", {code = "210"}):up();
+		dest_x:tag("status", {code = "210"}):up();
 	end
 	self:save_occupant(dest_occupant);
 
-	self:publicise_occupant_status(dest_occupant, {base = dest_x, self = self_x});
+	self:publicise_occupant_status(dest_occupant, dest_x);
 
 	module:fire_event("muc-occupant-joined", {
 		room = self;