aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_version.lua
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2018-10-06 16:29:42 +0200
committerKim Alvefur <zash@zash.se>2018-10-06 16:29:42 +0200
commitfde87c287898215b6a9b8a193447393fa4640e73 (patch)
treea069638f6574550f800cdc69e48abf46f7891603 /plugins/mod_version.lua
parentb2b84b2f7299a2b052db6878ac6ac646b2ff7640 (diff)
downloadprosody-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/mod_version.lua')
-rw-r--r--plugins/mod_version.lua4
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);