86 self.callback(self); |
86 self.callback(self); |
87 end |
87 end |
88 |
88 |
89 -- Initial execution of a command |
89 -- Initial execution of a command |
90 function command_mt:execute() |
90 function command_mt:execute() |
91 io.write(":execute()\n"); |
|
92 local iq = verse.iq({ to = self.jid, type = "set" }) |
91 local iq = verse.iq({ to = self.jid, type = "set" }) |
93 :tag("command", { xmlns = xmlns_commands, node = self.command }); |
92 :tag("command", { xmlns = xmlns_commands, node = self.command }); |
94 self.stream:send_iq(iq, function (result) |
93 self.stream:send_iq(iq, function (result) |
95 io.write(":send_iq() response\n"); |
|
96 self:_process_response(result); |
94 self:_process_response(result); |
97 end); |
95 end); |
98 end |
96 end |
99 |
97 |
100 function command_mt:next(form) |
98 function command_mt:next(form) |