Changeset

277:0d34cd815a93

plugins.carbons: Fix wrong variable name
author Kim Alvefur <zash@zash.se>
date Wed, 01 Feb 2012 22:40:30 +0100
parents 276:3d8442f7f034
children 278:6f58f6f3986d
files plugins/carbons.lua
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);