client: Apply variable expansion recursively to child nodes

Tue, 22 Sep 2015 12:16:26 +0200

author
Kim Alvefur <zash@zash.se>
date
Tue, 22 Sep 2015 12:16:26 +0200
changeset 34
946c7d13faac
parent 33
227bc1fe52e9
child 35
90219526e942
child 39
814b06660220

client: Apply variable expansion recursively to child nodes

scansion/objects/client.lua file | annotate | diff | comparison | revisions
--- a/scansion/objects/client.lua	Tue Sep 22 12:06:21 2015 +0200
+++ b/scansion/objects/client.lua	Tue Sep 22 12:16:26 2015 +0200
@@ -20,6 +20,9 @@
 			stanza.attr[k] = value;
 		end
 	end
+	for _, child in ipairs(stanza.tags) do
+		fill_vars(script, child);
+	end
 	return stanza;
 end
 

mercurial