diff options
author | Waqas Hussain <waqas20@gmail.com> | 2009-09-18 05:16:26 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2009-09-18 05:16:26 +0500 |
commit | 0040bc6b93bffd49c98789ca1fd8c4d90b4b8051 (patch) | |
tree | 4470b836b1812afebd1bb2b8d0254f6c5051c6f7 /tools/ejabberd2prosody.lua | |
parent | be1f06afddb60e82f89f268036a01178d123a04e (diff) | |
download | prosody-0040bc6b93bffd49c98789ca1fd8c4d90b4b8051.tar.gz prosody-0040bc6b93bffd49c98789ca1fd8c4d90b4b8051.zip |
ejabberd2prosody: Fixed a problem with null roster groups.
Diffstat (limited to 'tools/ejabberd2prosody.lua')
-rwxr-xr-x | tools/ejabberd2prosody.lua | 6 |
1 files changed, 5 insertions, 1 deletions
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) |