plugins.carbons: Don't check carbons flag twice.

Sat, 17 Mar 2012 15:44:16 +0100

author
Kim Alvefur <zash@zash.se>
date
Sat, 17 Mar 2012 15:44:16 +0100
changeset 285
99737531734c
parent 284
c78d1780f1d2
child 286
04b6c060ff01

plugins.carbons: Don't check carbons flag twice.

plugins/carbons.lua file | annotate | diff | comparison | revisions
--- 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

mercurial