client, component: `ret` was probably meant to be a local

Mon, 05 Mar 2012 20:13:33 +0100

author
Kim Alvefur <zash@zash.se>
date
Mon, 05 Mar 2012 20:13:33 +0100
changeset 282
52b971d9ebc3
parent 279
7a0aa3d055f4
child 283
39ce7535887c

client, component: `ret` was probably meant to be a local

client.lua file | annotate | diff | comparison | revisions
component.lua file | annotate | diff | comparison | revisions
--- a/client.lua	Sun Feb 12 20:21:52 2012 +0000
+++ b/client.lua	Mon Mar 05 20:13:33 2012 +0100
@@ -88,6 +88,7 @@
 	end);
 	
 	self:hook("stanza", function (stanza)
+		local ret;
 		if stanza.attr.xmlns == nil or stanza.attr.xmlns == "jabber:client" then
 			if stanza.name == "iq" and (stanza.attr.type == "get" or stanza.attr.type == "set") then
 				local xmlns = stanza.tags[1] and stanza.tags[1].attr.xmlns;
--- a/component.lua	Sun Feb 12 20:21:52 2012 +0000
+++ b/component.lua	Mon Mar 05 20:13:33 2012 +0100
@@ -78,6 +78,7 @@
 	end);
 	
 	self:hook("stanza", function (stanza)
+		local ret;
 		if stanza.attr.xmlns == nil or stanza.attr.xmlns == "jabber:client" then
 			if stanza.name == "iq" and (stanza.attr.type == "get" or stanza.attr.type == "set") then
 				local xmlns = stanza.tags[1] and stanza.tags[1].attr.xmlns;

mercurial