Diff

plugins/mod_version.lua @ 7977:01d6298de991

plugins/various: Use type-specific config API
author Kim Alvefur <zash@zash.se>
date Thu, 16 Mar 2017 20:46:06 +0100
parent 5776:bd0ff8ae98a8
child 9227:c0e058633d9a
line wrap: on
line diff
--- a/plugins/mod_version.lua	Thu Mar 16 19:09:57 2017 +0100
+++ b/plugins/mod_version.lua	Thu Mar 16 20:46:06 2017 +0100
@@ -16,11 +16,11 @@
 	:tag("name"):text("Prosody"):up()
 	:tag("version"):text(prosody.version):up();
 
-if not module:get_option("hide_os_type") then
+if not module:get_option_boolean("hide_os_type") then
 	if os.getenv("WINDIR") then
 		version = "Windows";
 	else
-		local os_version_command = module:get_option("os_version_command");
+		local os_version_command = module:get_option_string("os_version_command");
 		local ok, pposix = pcall(require, "util.pposix");
 		if not os_version_command and (ok and pposix and pposix.uname) then
 			version = pposix.uname().sysname;