diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-06 16:27:31 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-06 16:27:31 +0200 |
commit | b2b84b2f7299a2b052db6878ac6ac646b2ff7640 (patch) | |
tree | b379fb77bed9cec5442e99df2050f414061eeb4e /plugins | |
parent | b701156f2f6db7e7e4e3db84a5b82a790f12edc0 (diff) | |
download | prosody-b2b84b2f7299a2b052db6878ac6ac646b2ff7640.tar.gz prosody-b2b84b2f7299a2b052db6878ac6ac646b2ff7640.zip |
mod_version: Use text_tag
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_version.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 |