plugins.carbons: Fix wrong variable name

Wed, 01 Feb 2012 22:40:30 +0100

author
Kim Alvefur <zash@zash.se>
date
Wed, 01 Feb 2012 22:40:30 +0100
changeset 277
0d34cd815a93
parent 276
3d8442f7f034
child 278
6f58f6f3986d

plugins.carbons: Fix wrong variable name

plugins/carbons.lua file | annotate | diff | comparison | revisions
--- a/plugins/carbons.lua	Fri Jan 27 18:52:25 2012 +0100
+++ b/plugins/carbons.lua	Wed Feb 01 22:40:30 2012 +0100
@@ -47,7 +47,7 @@
 	end);
 
 	stream:hook("message", function(stanza)
-		local carbon_dir = fwd:get_child(nil, xmlns_carbons);
+		local carbon_dir = stanza:get_child(nil, xmlns_carbons);
 		if stanza.attr.from == my_bare and carbon_dir then
 			carbon_dir = carbon_dir and carbon_dir.name;
 			local fwd = stanza:get_child("forwarded", xmlns_forward);

mercurial