aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2017-12-12 17:49:30 +0100
committerKim Alvefur <zash@zash.se>2017-12-12 17:49:30 +0100
commitc207052ee0e55e661ca27938bfb81a3c7fa1e090 (patch)
tree8ddd03960c9a918e5773709454e8603d1d0fe802
parentd69999628d1879ca64ba6987dfae749b15db7385 (diff)
downloadprosody-c207052ee0e55e661ca27938bfb81a3c7fa1e090.tar.gz
prosody-c207052ee0e55e661ca27938bfb81a3c7fa1e090.zip
Backed out changeset 84c117cdd048, broke things
-rw-r--r--plugins/adhoc/adhoc.lib.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/adhoc/adhoc.lib.lua b/plugins/adhoc/adhoc.lib.lua
index 91806d26..87415636 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 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]);