# HG changeset patch # User Waqas Hussain # Date 1253232986 -18000 # Node ID b2bfd3b93da60c40b4179269ed13514a1a723a17 # Parent f79972ad8965fade6e6e2d7d26bab6052179e4d3 ejabberd2prosody: Fixed a problem with null roster groups. diff -r f79972ad8965 -r b2bfd3b93da6 tools/ejabberd2prosody.lua --- a/tools/ejabberd2prosody.lua Fri Sep 18 02:11:16 2009 +0500 +++ b/tools/ejabberd2prosody.lua Fri Sep 18 05:16:26 2009 +0500 @@ -104,7 +104,11 @@ 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)