Comparison

plugins/adhoc.lua @ 309:6297d658769f

plugins.adhoc: Collect a <note/>
author Kim Alvefur <zash@zash.se>
date Wed, 04 Jul 2012 03:37:16 +0200
parent 308:2bcc97bc5f43
child 340:0ce227f6034c
comparison
equal deleted inserted replaced
308:2bcc97bc5f43 309:6297d658769f
83 end 83 end
84 local command = result:get_child("command", xmlns_commands); 84 local command = result:get_child("command", xmlns_commands);
85 self.status = command.attr.status; 85 self.status = command.attr.status;
86 self.sessionid = command.attr.sessionid; 86 self.sessionid = command.attr.sessionid;
87 self.form = command:get_child("x", xmlns_data); 87 self.form = command:get_child("x", xmlns_data);
88 self.note = command:get_child("note"); --FIXME handle multiple <note/>s
88 self.callback(self); 89 self.callback(self);
89 end 90 end
90 91
91 -- Initial execution of a command 92 -- Initial execution of a command
92 function command_mt:execute() 93 function command_mt:execute()