diff options
author | Kim Alvefur <zash@zash.se> | 2017-12-05 12:32:25 +0100 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2017-12-05 12:32:25 +0100 |
commit | c9fa21c351dd289cd0ea65b88b63fcb6d69647b3 (patch) | |
tree | 2ee88247cf7af301a43e7021ee937708b9e19d3b /plugins/adhoc | |
parent | bbf59a9bbead601d416254c21b3b65b762245703 (diff) | |
download | prosody-c9fa21c351dd289cd0ea65b88b63fcb6d69647b3.tar.gz prosody-c9fa21c351dd289cd0ea65b88b63fcb6d69647b3.zip |
mod_adhoc/adhoc.lib: Rename variable to avoid name clash [luacheck]
Diffstat (limited to 'plugins/adhoc')
-rw-r--r-- | plugins/adhoc/adhoc.lib.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/adhoc/adhoc.lib.lua b/plugins/adhoc/adhoc.lib.lua index 87415636..91806d26 100644 --- a/plugins/adhoc/adhoc.lib.lua +++ b/plugins/adhoc/adhoc.lib.lua @@ -25,13 +25,13 @@ function _M.new(name, node, handler, permission) end function _M.handle_cmd(command, origin, stanza) - local cmdtag = stanza.tags[1] - local sessionid = cmdtag.attr.sessionid or uuid.generate(); + local command = stanza.tags[1]; + local sessionid = command.attr.sessionid or uuid.generate(); local dataIn = { to = stanza.attr.to; from = stanza.attr.from; - action = cmdtag.attr.action or "execute"; - form = cmdtag:get_child("x", "jabber:x:data"); + action = command.attr.action or "execute"; + form = command:get_child("x", "jabber:x:data"); }; local data, state = command:handler(dataIn, states[sessionid]); |