Software /
code /
verse
Comparison
plugins/adhoc.lua @ 341:a95890d86fe4
plugins.adhoc, plugins.jingle: Fix checking of type attribute (thanks Mark)
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Fri, 07 Jun 2013 14:36:41 +0100 |
parent | 340:0ce227f6034c |
child | 380:0891b4e27766 |
comparison
equal
deleted
inserted
replaced
340:0ce227f6034c | 341:a95890d86fe4 |
---|---|
75 end | 75 end |
76 end); | 76 end); |
77 end | 77 end |
78 | 78 |
79 function command_mt:_process_response(result) | 79 function command_mt:_process_response(result) |
80 if result.type == "error" then | 80 if result.attr.type == "error" then |
81 self.status = "canceled"; | 81 self.status = "canceled"; |
82 self.callback(self, {}); | 82 self.callback(self, {}); |
83 return; | 83 return; |
84 end | 84 end |
85 local command = result:get_child("command", xmlns_commands); | 85 local command = result:get_child("command", xmlns_commands); |