diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-06 16:38:05 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-06 16:38:05 +0200 |
commit | 08b5a03be3e6344ed475df7cac56a18bd7330f69 (patch) | |
tree | 9dd44a45f00cc9f46d547f73f363b8d7a0c32ffa /plugins | |
parent | 304dcd7507636417c760db88171319dd05f204b4 (diff) | |
download | prosody-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')
-rw-r--r-- | plugins/mod_version.lua | 3 |
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 |