# HG changeset patch # User Kim Alvefur # Date 1538836182 -7200 # Node ID b502766a10d73216f187a33384b4ef977691b977 # Parent 13b8d47119add0c74396701f48cc07569400fae0 mod_version: Make 'origin' variable local for consistency Many event handlers start with local origin, stanza = event.origin, event.stanza; diff -r 13b8d47119ad -r b502766a10d7 plugins/mod_version.lua --- a/plugins/mod_version.lua Sat Oct 06 16:27:31 2018 +0200 +++ b/plugins/mod_version.lua Sat Oct 06 16:29:42 2018 +0200 @@ -40,7 +40,7 @@ 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);