plugins/muc/muc.lib.lua
changeset 9550 a06419532efb
parent 9535 9bb33edd7255
child 9603 5a2135964ed3
equal deleted inserted replaced
9549:c93496785022 9550:a06419532efb
  1231 		return jid, affiliation, _affiliation_data[jid];
  1231 		return jid, affiliation, _affiliation_data[jid];
  1232 	end, nil, nil;
  1232 	end, nil, nil;
  1233 end
  1233 end
  1234 
  1234 
  1235 function room_mt:set_affiliation(actor, jid, affiliation, reason, data)
  1235 function room_mt:set_affiliation(actor, jid, affiliation, reason, data)
  1236 	module:log("debug", "data is %s", tostring(data));
       
  1237 	if not actor then return nil, "modify", "not-acceptable"; end;
  1236 	if not actor then return nil, "modify", "not-acceptable"; end;
  1238 
  1237 
  1239 	local node, host, resource = jid_split(jid);
  1238 	local node, host, resource = jid_split(jid);
  1240 	if not host then return nil, "modify", "not-acceptable"; end
  1239 	if not host then return nil, "modify", "not-acceptable"; end
  1241 	jid = jid_join(node, host); -- Bare
  1240 	jid = jid_join(node, host); -- Bare