# HG changeset patch # User Kim Alvefur # Date 1538836051 -7200 # Node ID 13b8d47119add0c74396701f48cc07569400fae0 # Parent 2e3f66475cc83952cf92cf470f2f6bd75e65174f mod_version: Use text_tag diff -r 2e3f66475cc8 -r 13b8d47119ad plugins/mod_version.lua --- a/plugins/mod_version.lua Fri Sep 14 01:31:58 2018 +0200 +++ b/plugins/mod_version.lua Sat Oct 06 16:27:31 2018 +0200 @@ -13,8 +13,8 @@ local version; local query = st.stanza("query", {xmlns = "jabber:iq:version"}) - :tag("name"):text("Prosody"):up() - :tag("version"):text(prosody.version):up(); + :text_tag("name", "Prosody") + :text_tag("version", prosody.version); if not module:get_option_boolean("hide_os_type") then if os.getenv("WINDIR") then @@ -35,7 +35,7 @@ end if version then version = version:match("^%s*(.-)%s*$") or version; - query:tag("os"):text(version):up(); + query:text_tag("os", version); end end