aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2014-02-03 07:25:05 +0100
committerKim Alvefur <zash@zash.se>2014-02-03 07:25:05 +0100
commit3b3997eef4a3c50a562efe9c49b3a180ab439dbe (patch)
treec840902603d1482af5f9156d6170461fd47b8e69 /tools
parentc891b3fd1d45a2cacbfce1744ebd25828d321810 (diff)
parent468a94a982d801d63812023fddb40baca2b9ef62 (diff)
downloadprosody-3b3997eef4a3c50a562efe9c49b3a180ab439dbe.tar.gz
prosody-3b3997eef4a3c50a562efe9c49b3a180ab439dbe.zip
Merge 0.10->trunk
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 8297278f..e9dbd2dc 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