plugins.roster: Make stanza error parts locals.

Fri, 27 Jan 2012 18:52:25 +0100

author
Kim Alvefur <zash@zash.se>
date
Fri, 27 Jan 2012 18:52:25 +0100
changeset 276
3d8442f7f034
parent 275
c077b20ad59f
child 277
0d34cd815a93

plugins.roster: Make stanza error parts locals.

plugins/roster.lua file | annotate | diff | comparison | revisions
--- a/plugins/roster.lua	Mon Jan 16 22:58:50 2012 +0100
+++ b/plugins/roster.lua	Fri Jan 27 18:52:25 2012 +0100
@@ -75,7 +75,7 @@
 			if reply.attr.type == "result" then
 				callback(true);
 			else
-				type, condition, text = reply:get_error();
+				local type, condition, text = reply:get_error();
 				callback(nil, { type, condition, text });
 			end
 		end);
@@ -94,7 +94,7 @@
 				if reply.attr.type == "result" then
 					callback(true);
 				else
-					type, condition, text = reply:get_error();
+					local type, condition, text = reply:get_error();
 					callback(nil, { type, condition, text });
 				end
 			end);
@@ -126,7 +126,7 @@
 					end
 					callback(roster);
 				else
-					type, condition, text = stanza:get_error();
+					local type, condition, text = stanza:get_error();
 					callback(nil, { type, condition, text }); --FIXME
 				end
 			end);

mercurial