# HG changeset patch # User Kim Alvefur # Date 1512473571 -3600 # Node ID 77e59f8057bf7b21cfcc97c37b83a5ab04b6dbb2 # Parent 84c117cdd0484e5a2a939e8bc3333b9f73eb5354 mod_adhoc: Rename variable to avoid name clash [luacheck] diff -r 84c117cdd048 -r 77e59f8057bf plugins/adhoc/mod_adhoc.lua --- a/plugins/adhoc/mod_adhoc.lua Tue Dec 05 12:32:25 2017 +0100 +++ b/plugins/adhoc/mod_adhoc.lua Tue Dec 05 12:32:51 2017 +0100 @@ -45,8 +45,8 @@ end); module:hook("host-disco-items-node", function (event) - local stanza, origin, reply, node = event.stanza, event.origin, event.reply, event.node; - if node ~= xmlns_cmd then + local stanza, origin, reply, disco_node = event.stanza, event.origin, event.reply, event.node; + if disco_node ~= xmlns_cmd then return; end