aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_version.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/mod_version.lua')
-rw-r--r--plugins/mod_version.lua6
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