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 | fde87c287898215b6a9b8a193447393fa4640e73 (patch) | |
tree | a069638f6574550f800cdc69e48abf46f7891603 /plugins | |
parent | b2b84b2f7299a2b052db6878ac6ac646b2ff7640 (diff) | |
download | prosody-fde87c287898215b6a9b8a193447393fa4640e73.tar.gz prosody-fde87c287898215b6a9b8a193447393fa4640e73.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); |