X-Git-Url: https://git.enpas.org/?a=blobdiff_plain;f=tools%2Fejabberd2prosody.lua;h=7b19260d749fc2cc74fc0e9bc8eb2bda401a68a6;hb=4c4e6921f05719c63eba64500cfef4a030fe2411;hp=3bcf8a2e80f0a439aabf7ba21e8e3dfd71bc92d1;hpb=aa69dfe15fba7f10b670cae25953ed5c93b18f65;p=prosody.git diff --git a/tools/ejabberd2prosody.lua b/tools/ejabberd2prosody.lua index 3bcf8a2e..7b19260d 100755 --- a/tools/ejabberd2prosody.lua +++ b/tools/ejabberd2prosody.lua @@ -104,7 +104,11 @@ local filters = { else error("Unknown ask type: "..ask); end if subscription ~= "both" and subscription ~= "from" and subscription ~= "to" and subscription ~= "none" then error(subscription) end local item = {name = name, ask = ask, subscription = subscription, groups = {}}; - for _, g in ipairs(groups) do item.groups[g] = true; end + for _, g in ipairs(groups) do + if type(g) == "string" then + item.groups[g] = true; + end + end roster(node, host, contact, item); end; private_storage = function(tuple)