plugins/muc/muc.lib.lua
changeset 8840 1b10802a770e
parent 8839 564e897f0790
child 8841 6d4b0895f76d
equal deleted inserted replaced
8839:564e897f0790 8840:1b10802a770e
  1132 		local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user"})
  1132 		local x = st.stanza("x", {xmlns = "http://jabber.org/protocol/muc#user"})
  1133 				:tag("item", {affiliation=affiliation or "none", role=role or "none"})
  1133 				:tag("item", {affiliation=affiliation or "none", role=role or "none"})
  1134 					:tag("reason"):text(reason or ""):up()
  1134 					:tag("reason"):text(reason or ""):up()
  1135 				:up();
  1135 				:up();
  1136 		local self_x = st.clone(x);
  1136 		local self_x = st.clone(x);
  1137 		self_x:tag("status", {code="110"});
  1137 		self_x:tag("status", {code="110"}):up();
  1138 		local presence_type = nil;
  1138 		local presence_type = nil;
  1139 		if not role then -- getting kicked
  1139 		if not role then -- getting kicked
  1140 			presence_type = "unavailable";
  1140 			presence_type = "unavailable";
  1141 			if affiliation == "outcast" then
  1141 			if affiliation == "outcast" then
  1142 				-- banned
  1142 				-- banned