Software /
code /
clix
Changeset
60:1537dabc5df8
clix.export: Don't add empty iq:private nodes.
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Thu, 05 May 2011 01:30:06 +0200 |
parents | 59:46cb6e772e31 |
children | 61:7d62bff46601 |
files | clix/export.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/clix/export.lua Wed Apr 20 02:00:16 2011 +0200 +++ b/clix/export.lua Thu May 05 01:30:06 2011 +0200 @@ -45,7 +45,7 @@ , function(stanza) conn:debug("got private %s*%s", node[2], node[1]); local query = stanza:get_child("query", xmlns_private); - if query then + if query and #query > 0 then export:add_child(query); end out = out - 1;