aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_version.lua
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
commit08b5a03be3e6344ed475df7cac56a18bd7330f69 (patch)
tree9dd44a45f00cc9f46d547f73f363b8d7a0c32ffa /plugins/mod_version.lua
parent304dcd7507636417c760db88171319dd05f204b4 (diff)
downloadprosody-08b5a03be3e6344ed475df7cac56a18bd7330f69.tar.gz
prosody-08b5a03be3e6344ed475df7cac56a18bd7330f69.zip
mod_version: Reduce scope of variable
It is only used in this if block anyways
Diffstat (limited to 'plugins/mod_version.lua')
-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