# HG changeset patch # User Kim Alvefur # Date 1390837674 -3600 # Node ID 95ce7bfbfa6f88aba66eb1d46b98530c86496c04 # Parent e49c0c677c5d3ca7c0daa2b9c85fe06c5186d9ac tools/ejabberd2prosody: Handle new room member format. diff -r e49c0c677c5d -r 95ce7bfbfa6f tools/ejabberd2prosody.lua --- a/tools/ejabberd2prosody.lua Sat Jan 18 17:26:02 2014 -0500 +++ b/tools/ejabberd2prosody.lua Mon Jan 27 16:47:54 2014 +0100 @@ -163,7 +163,7 @@ function muc_room(node, host, properties) local store = { jid = node.."@"..host, _data = {}, _affiliations = {} }; for _,aff in ipairs(properties.affiliations) do - store._affiliations[_table_to_jid(aff[1])] = aff[2]; + store._affiliations[_table_to_jid(aff[1])] = aff[2][1] or aff[2]; end store._data.subject = properties.subject; if properties.subject_author then