# HG changeset patch # User Kim Alvefur # Date 1564775877 -7200 # Node ID 199dae5b6f11dbc0e8f4d7847e13b75508c0f1bc # Parent 8643b784626c08c95216f652b7f0c02e0b1b33bf mod_vcard_legacy: Complete roundtrip support for ORG/ORGNAME vcard-temp -> vcard4 worked previously but not the other way around diff -r 8643b784626c -r 199dae5b6f11 plugins/mod_vcard_legacy.lua --- a/plugins/mod_vcard_legacy.lua Sat Jan 19 22:01:54 2019 +0100 +++ b/plugins/mod_vcard_legacy.lua Fri Aug 02 21:57:57 2019 +0200 @@ -110,6 +110,10 @@ if uri and uri:sub(1, 5) == "xmpp:" then vcard_temp:text_tag("JABBERID", uri:sub(6)) end + elseif tag.name == "org" then + vcard_temp:tag("ORG") + :text_tag("ORGNAME", tag:get_child_text("text")) + :up(); end end end