Software /
code /
prosody
Changeset
8471:a6f58305411e
Backed out changeset 84c117cdd048, broke things
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Tue, 12 Dec 2017 17:49:30 +0100 |
parents | 8470:81f894d08b17 |
children | 8472:d88dc6827675 |
files | plugins/adhoc/adhoc.lib.lua |
diffstat | 1 files changed, 4 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/plugins/adhoc/adhoc.lib.lua Mon Dec 11 22:45:03 2017 +0100 +++ b/plugins/adhoc/adhoc.lib.lua Tue Dec 12 17:49:30 2017 +0100 @@ -25,13 +25,13 @@ end function _M.handle_cmd(command, origin, stanza) - local command = stanza.tags[1]; - local sessionid = command.attr.sessionid or uuid.generate(); + local cmdtag = stanza.tags[1] + local sessionid = cmdtag.attr.sessionid or uuid.generate(); local dataIn = { to = stanza.attr.to; from = stanza.attr.from; - action = command.attr.action or "execute"; - form = command:get_child("x", "jabber:x:data"); + action = cmdtag.attr.action or "execute"; + form = cmdtag:get_child("x", "jabber:x:data"); }; local data, state = command:handler(dataIn, states[sessionid]);