diff options
author | Kim Alvefur <zash@zash.se> | 2018-10-06 16:29:42 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2018-10-06 16:29:42 +0200 |
commit | 07a48b20a32263babe13c411ebd8038d11864448 (patch) | |
tree | a069638f6574550f800cdc69e48abf46f7891603 /plugins | |
parent | 96e5020877efa8208233ac1c156fd907976d270c (diff) | |
download | prosody-07a48b20a32263babe13c411ebd8038d11864448.tar.gz prosody-07a48b20a32263babe13c411ebd8038d11864448.zip |
mod_version: Make 'origin' variable local for consistency
Many event handlers start with
local origin, stanza = event.origin, event.stanza;
Diffstat (limited to 'plugins')
-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 4c60e38f..d434792c 100644 --- a/plugins/mod_version.lua +++ b/plugins/mod_version.lua @@ -40,7 +40,7 @@ if not module:get_option_boolean("hide_os_type") then end module:hook("iq-get/host/jabber:iq:version:query", function(event) - local stanza = event.stanza; - event.origin.send(st.reply(stanza):add_child(query)); + local origin, stanza = event.origin, event.stanza; + origin.send(st.reply(stanza):add_child(query)); return true; end); |