Comparison

plugins/adhoc/adhoc.lib.lua @ 4860:b66e73793cb7

adhoc.lib: Default actions to 'complete' (replacement for rev 52b6901cabb0)
author Kim Alvefur <zash@zash.se>
date Fri, 11 May 2012 21:41:47 +0100
parent 4858:33458e1d84c8
child 4975:6f689c155186
comparison
equal deleted inserted replaced
4859:54eb17126bd3 4860:b66e73793cb7
46 stanza = st.error_reply(stanza, data.error.type, data.error.condition, data.error.message); 46 stanza = st.error_reply(stanza, data.error.type, data.error.condition, data.error.message);
47 origin.send(stanza); 47 origin.send(stanza);
48 return true; 48 return true;
49 else 49 else
50 cmdtag = command:cmdtag("executing", sessionid); 50 cmdtag = command:cmdtag("executing", sessionid);
51 data.actions = data.actions or { "complete" };
51 end 52 end
52 53
53 for name, content in pairs(data) do 54 for name, content in pairs(data) do
54 if name == "info" then 55 if name == "info" then
55 cmdtag:tag("note", {type="info"}):text(content):up(); 56 cmdtag:tag("note", {type="info"}):text(content):up();