Software /
code /
prosody
Changeset
606:f8f1534a4e06
Make the ejabberd importer work with host-only roster items
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Mon, 08 Dec 2008 07:11:35 +0500 |
parents | 605:8458be0941e7 |
children | 607:7d1493fc524a |
files | tools/ejabberd2prosody.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/tools/ejabberd2prosody.lua Mon Dec 08 04:47:51 2008 +0500 +++ b/tools/ejabberd2prosody.lua Mon Dec 08 07:11:35 2008 +0500 @@ -124,7 +124,7 @@ 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