# HG changeset patch
# User Kim Alvefur <zash@zash.se>
# Date 1331995456 -3600
# Node ID 99737531734ca29c854a90c6d9e188e4bcfec1ab
# Parent  c78d1780f1d2e743ada428fa2f8cb5b2b5492178
plugins.carbons: Don't check carbons flag twice.

diff -r c78d1780f1d2 -r 99737531734c plugins/carbons.lua
--- a/plugins/carbons.lua	Mon Mar 05 20:51:00 2012 +0100
+++ b/plugins/carbons.lua	Sat Mar 17 15:44:16 2012 +0100
@@ -49,7 +49,7 @@
 	stream:hook("message", function(stanza)
 		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;
+			carbon_dir = carbon_dir.name;
 			local fwd = stanza:get_child("forwarded", xmlns_forward);
 			local fwd_stanza = fwd and fwd:get_child("message", "jabber:client");
 			if fwd_stanza then