diff options
author | Matthew Wild <mwild1@gmail.com> | 2012-07-22 18:47:40 +0100 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2012-07-22 18:47:40 +0100 |
commit | 0f2e8a78418d03476741324bfea63be1b7e67712 (patch) | |
tree | 382881c66387d07fd1319d767387658017f17ca9 /plugins/adhoc | |
parent | ad5bc731f2c6b1124bcb8f0cc0a1b155a0c7917e (diff) | |
parent | ec1d26a8358054f7f00ba4f0c9ee65bc858fb609 (diff) | |
download | prosody-0f2e8a78418d03476741324bfea63be1b7e67712.tar.gz prosody-0f2e8a78418d03476741324bfea63be1b7e67712.zip |
Merge with Zash
Diffstat (limited to 'plugins/adhoc')
-rw-r--r-- | plugins/adhoc/adhoc.lib.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/adhoc/adhoc.lib.lua b/plugins/adhoc/adhoc.lib.lua index eff3caff..f9510172 100644 --- a/plugins/adhoc/adhoc.lib.lua +++ b/plugins/adhoc/adhoc.lib.lua @@ -12,7 +12,7 @@ local states = {} local _M = {}; -function _cmdtag(desc, status, sessionid, action) +local function _cmdtag(desc, status, sessionid, action) local cmd = st.stanza("command", { xmlns = xmlns_cmd, node = desc.node, status = status }); if sessionid then cmd.attr.sessionid = sessionid; end if action then cmd.attr.action = action; end @@ -35,6 +35,7 @@ function _M.handle_cmd(command, origin, stanza) local data, state = command:handler(dataIn, states[sessionid]); states[sessionid] = state; local stanza = st.reply(stanza); + local cmdtag; if data.status == "completed" then states[sessionid] = nil; cmdtag = command:cmdtag("completed", sessionid); |