aboutsummaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-12-08 07:11:35 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-12-08 07:11:35 +0500
commite99904914bbd0b70bdbd552aebdf6b94e1779237 (patch)
tree57bafe856317abcf697c7f3ad7c3462f31f5651f /tools
parentf630bfdc92decfc06a6867e2e3124fbd002f77ec (diff)
downloadprosody-e99904914bbd0b70bdbd552aebdf6b94e1779237.tar.gz
prosody-e99904914bbd0b70bdbd552aebdf6b94e1779237.zip
Make the ejabberd importer work with host-only roster items
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 e66b8513..a277ea94 100755
--- a/tools/ejabberd2prosody.lua
+++ b/tools/ejabberd2prosody.lua
@@ -124,7 +124,7 @@ local filters = {
end;
roster = function(tuple)
local node = tuple[3][1]; local host = tuple[3][2];
- local contact = tuple[4][1].."@"..tuple[4][2];
+ local contact = (type(tuple[4][1]) == "table") and tuple[4][2] or tuple[4][1].."@"..tuple[4][2];
local name = tuple[5]; local subscription = tuple[6];
local ask = tuple[7]; local groups = tuple[8];
if type(name) ~= type("") then name = nil; end