From b2b84b2f7299a2b052db6878ac6ac646b2ff7640 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 6 Oct 2018 16:27:31 +0200 Subject: mod_version: Use text_tag --- plugins/mod_version.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/mod_version.lua b/plugins/mod_version.lua index 2603283a..4c60e38f 100644 --- a/plugins/mod_version.lua +++ b/plugins/mod_version.lua @@ -13,8 +13,8 @@ module:add_feature("jabber:iq:version"); 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 @@ if not module:get_option_boolean("hide_os_type") then end if version then version = version:match("^%s*(.-)%s*$") or version; - query:tag("os"):text(version):up(); + query:text_tag("os", version); end end -- cgit v1.2.3