From fde87c287898215b6a9b8a193447393fa4640e73 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Sat, 6 Oct 2018 16:29:42 +0200 Subject: mod_version: Make 'origin' variable local for consistency Many event handlers start with local origin, stanza = event.origin, event.stanza; --- plugins/mod_version.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') 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); -- cgit v1.2.3