Software /
code /
prosody
Changeset
9433:13b8d47119ad
mod_version: Use text_tag
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 06 Oct 2018 16:27:31 +0200 |
parents | 9432:2e3f66475cc8 |
children | 9434:b502766a10d7 |
files | plugins/mod_version.lua |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- 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