plugins/mod_version.lua
changeset 9436 13b8d47119ad
parent 9232 1338b84c0566
child 9437 b502766a10d7
--- 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