Diff

util/stanza.lua @ 5435:f56e449a63e3

util.stanza: Use correct index when replacing the tag in .tags (thanks daurnimator)
author Matthew Wild <mwild1@gmail.com>
date Fri, 05 Apr 2013 19:59:48 +0100
parent 5424:7318527c6dea
child 5776:bd0ff8ae98a8
child 6466:6e67c73f730c
line wrap: on
line diff
--- a/util/stanza.lua	Fri Apr 05 19:13:46 2013 +0100
+++ b/util/stanza.lua	Fri Apr 05 19:59:48 2013 +0100
@@ -166,7 +166,7 @@
 				curr_tag = curr_tag - 1;
 			else
 				self[i] = ret;
-				tags[i] = ret;
+				tags[curr_tag] = ret;
 			end
 			curr_tag = curr_tag + 1;
 		end