Changeset

4055:f3adda1ed0df

MUC: Fix a pair of missing :up()
author Kim Alvefur <zash@zash.se>
date Mon, 03 Jan 2011 09:40:45 +0100
parents 4054:6011dee889b2
children 4056:9106dcd4815e
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	Wed Dec 29 18:45:31 2010 +0500
+++ b/plugins/muc/muc.lib.lua	Mon Jan 03 09:40:45 2011 +0100
@@ -356,7 +356,7 @@
 					pr.attr.to = from;
 					pr:tag("x", {xmlns='http://jabber.org/protocol/muc#user'})
 						:tag("item", {affiliation=occupant.affiliation or "none", role='none'}):up()
-						:tag("status", {code='110'});
+						:tag("status", {code='110'}):up();
 					self:_route_stanza(pr);
 					if jid ~= new_jid then
 						pr = st.clone(occupant.sessions[new_jid])
@@ -454,7 +454,7 @@
 						if not is_merge then
 							self:broadcast_except_nick(pr, to);
 						end
-						pr:tag("status", {code='110'});
+						pr:tag("status", {code='110'}):up();
 						if self._data.whois == 'anyone' then
 							pr:tag("status", {code='100'}):up();
 						end