aboutsummaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-01-27 16:47:54 +0100
committerKim Alvefur <zash@zash.se>2014-01-27 16:47:54 +0100
commitfe6a98b8055404bd2250b1ebb1fd84bc49999036 (patch)
tree5907008690ad52eb660a4ecb2cfe13f60abad3eb /tools
parent21065eedba17777ce909972ae0c94ba4aed7a000 (diff)
downloadprosody-im-server-fe6a98b8055404bd2250b1ebb1fd84bc49999036.tar
prosody-im-server-fe6a98b8055404bd2250b1ebb1fd84bc49999036.zip
tools/ejabberd2prosody: Handle new room member format.
Diffstat (limited to 'tools')
-rwxr-xr-xtools/ejabberd2prosody.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/ejabberd2prosody.lua b/tools/ejabberd2prosody.lua
index bc916fb8..be1504b2 100755
--- a/tools/ejabberd2prosody.lua
+++ b/tools/ejabberd2prosody.lua
@@ -163,7 +163,7 @@ end
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