Comparison

plugins/mod_vcard.lua @ 89:081e920dc74e

Fixed: incorrect auth check
author Waqas Hussain <waqas20@gmail.com>
date Thu, 09 Oct 2008 03:40:16 +0500
parent 86:a2085854c72c
child 90:da468ed49a7b
comparison
equal deleted inserted replaced
88:023320150c65 89:081e920dc74e
46 end 46 end
47 end); 47 end);
48 48
49 add_event_hook("stream-features", 49 add_event_hook("stream-features",
50 function (session, features) 50 function (session, features)
51 if session.full_jid then 51 if session.type == "c2s" then
52 t_insert(features, "<feature var='vcard-temp'/>"); 52 t_insert(features, "<feature var='vcard-temp'/>");
53 end 53 end
54 end); 54 end);