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 | 96e5020877efa8208233ac1c156fd907976d270c (patch) | |
tree | b379fb77bed9cec5442e99df2050f414061eeb4e | |
parent | 34bd628b8cb477a408cf0f1a128135857fb315c2 (diff) | |
download | prosody-96e5020877efa8208233ac1c156fd907976d270c.tar.gz prosody-96e5020877efa8208233ac1c156fd907976d270c.zip |
mod_version: Use text_tag
-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 |