diff options
author | Kim Alvefur <zash@zash.se> | 2017-03-16 23:49:27 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-03-16 23:49:27 +0100 |
commit | 3601968ff85a10f18f1dba92360aac7efabe09ad (patch) | |
tree | 5d9e9dfec7020f862dc40a4b872556e3661b5327 /plugins/mod_version.lua | |
parent | 33f73b5b885da18cef1b983cd1a1fe6d287e0391 (diff) | |
parent | 4ce8edd6eb83eff68970077e9c3c99df19f5a955 (diff) | |
download | prosody-3601968ff85a10f18f1dba92360aac7efabe09ad.tar.gz prosody-3601968ff85a10f18f1dba92360aac7efabe09ad.zip |
Merge 0.10->trunk
Diffstat (limited to 'plugins/mod_version.lua')
-rw-r--r-- | plugins/mod_version.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_version.lua b/plugins/mod_version.lua index be244beb..7f045415 100644 --- a/plugins/mod_version.lua +++ b/plugins/mod_version.lua @@ -16,11 +16,11 @@ local query = st.stanza("query", {xmlns = "jabber:iq:version"}) :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; |