Software /
code /
verse
Comparison
plugins/adhoc.lua @ 145:96efa9ee8f18
plugins.adhoc: Remove some stray debugging
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Tue, 21 Sep 2010 14:06:56 +0100 |
parent | 122:e2600454fd54 |
child | 250:a5ac643a7fd6 |
comparison
equal
deleted
inserted
replaced
144:46e933d81024 | 145:96efa9ee8f18 |
---|---|
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) |