Comparison

plugins/carbons.lua @ 277:0d34cd815a93

plugins.carbons: Fix wrong variable name
author Kim Alvefur <zash@zash.se>
date Wed, 01 Feb 2012 22:40:30 +0100
parent 274:a228f3c7808a
child 285:99737531734c
comparison
equal deleted inserted replaced
276:3d8442f7f034 277:0d34cd815a93
45 stream:hook("bind-success", function() 45 stream:hook("bind-success", function()
46 my_bare = bare_jid(stream.jid); 46 my_bare = bare_jid(stream.jid);
47 end); 47 end);
48 48
49 stream:hook("message", function(stanza) 49 stream:hook("message", function(stanza)
50 local carbon_dir = fwd:get_child(nil, xmlns_carbons); 50 local carbon_dir = stanza:get_child(nil, xmlns_carbons);
51 if stanza.attr.from == my_bare and carbon_dir then 51 if stanza.attr.from == my_bare and carbon_dir then
52 carbon_dir = carbon_dir and carbon_dir.name; 52 carbon_dir = carbon_dir and carbon_dir.name;
53 local fwd = stanza:get_child("forwarded", xmlns_forward); 53 local fwd = stanza:get_child("forwarded", xmlns_forward);
54 local fwd_stanza = fwd and fwd:get_child("message", "jabber:client"); 54 local fwd_stanza = fwd and fwd:get_child("message", "jabber:client");
55 if fwd_stanza then 55 if fwd_stanza then