From 4c4e6921f05719c63eba64500cfef4a030fe2411 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Fri, 18 Sep 2009 05:16:26 +0500 Subject: [PATCH 1/1] ejabberd2prosody: Fixed a problem with null roster groups. --- tools/ejabberd2prosody.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- 2.30.2