diff plugins/mod_vcard.lua @ 403:da92afa267cf

Merging with main branch.
author Tobias Markmann <tm@ayena.de>
date Sun, 23 Nov 2008 20:44:48 +0100
parents 17bcecb06420
children 63be85693710
line wrap: on
line diff
--- a/plugins/mod_vcard.lua	Sun Nov 23 20:43:42 2008 +0100
+++ b/plugins/mod_vcard.lua	Sun Nov 23 20:44:48 2008 +0100
@@ -43,9 +43,10 @@
 			end
 		end);
 
+local feature_vcard_attr = { var='vcard-temp' };
 add_event_hook("stream-features", 
 					function (session, features)												
 						if session.type == "c2s" then
-							t_insert(features, "<feature var='vcard-temp'/>");
+							features:tag("feature", feature_vcard_attr):up();
 						end
 					end);