aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-06 16:38:05 +0200
committerKim Alvefur <zash@zash.se>2018-10-06 16:38:05 +0200
commit1e4153ffc14ac4fcc588f4d4a3749ea88c263264 (patch)
tree9dd44a45f00cc9f46d547f73f363b8d7a0c32ffa
parentcf64256f73c7ab9d45b6180d84ab414bad567fe9 (diff)
downloadprosody-1e4153ffc14ac4fcc588f4d4a3749ea88c263264.tar.gz
prosody-1e4153ffc14ac4fcc588f4d4a3749ea88c263264.zip
mod_version: Reduce scope of variable
It is only used in this if block anyways
-rw-r--r--plugins/mod_version.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_version.lua b/plugins/mod_version.lua
index 71730ba9..1d24001c 100644
--- a/plugins/mod_version.lua
+++ b/plugins/mod_version.lua
@@ -10,13 +10,12 @@ local st = require "util.stanza";
module:add_feature("jabber:iq:version");
-local platform;
-
local query = st.stanza("query", {xmlns = "jabber:iq:version"})
:text_tag("name", "Prosody")
:text_tag("version", prosody.version);
if not module:get_option_boolean("hide_os_type") then
+ local platform;
if os.getenv("WINDIR") then
platform = "Windows";
else