Software / code / verse
Comparison
plugins/adhoc.lua @ 148:386920f05808
Merge
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Mon, 11 Oct 2010 02:03:32 +0100 |
| parent | 145:96efa9ee8f18 |
| child | 250:a5ac643a7fd6 |
comparison
equal
deleted
inserted
replaced
| 147:c95b84ed366b | 148:386920f05808 |
|---|---|
| 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) |