aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/adhoc/adhoc.lib.lua
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
commit1074d0ebbca7376035020791985c0df70b98b4cf (patch)
tree8ddd03960c9a918e5773709454e8603d1d0fe802 /plugins/adhoc/adhoc.lib.lua
parent852564c14e0287396b9f544374b89b1fdec373be (diff)
downloadprosody-1074d0ebbca7376035020791985c0df70b98b4cf.tar.gz
prosody-1074d0ebbca7376035020791985c0df70b98b4cf.zip
Backed out changeset 84c117cdd048, broke things
Diffstat (limited to 'plugins/adhoc/adhoc.lib.lua')
-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]);