MUC: Fix a pair of missing :up()
authorKim Alvefur <zash@zash.se>
Mon, 03 Jan 2011 09:40:45 +0100
changeset 3989 84792db89336
parent 3988 a3104064e905
child 3990 764922062c38
MUC: Fix a pair of missing :up()
plugins/muc/muc.lib.lua
--- a/plugins/muc/muc.lib.lua	Wed Dec 29 19:24:19 2010 +0100
+++ 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