Software /
code /
prosody
Diff
plugins/adhoc/mod_adhoc.lua @ 8460:77e59f8057bf
mod_adhoc: Rename variable to avoid name clash [luacheck]
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 05 Dec 2017 12:32:51 +0100 |
parent | 6841:be87ab2d611c |
child | 8563:50f2ad088589 |
line wrap: on
line diff
--- 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