Software /
code /
verse
Comparison
plugins/jingle.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 | 250:a5ac643a7fd6 |
child | 380:0891b4e27766 |
comparison
equal
deleted
inserted
replaced
340:0ce227f6034c | 341:a95890d86fe4 |
---|---|
235 local jingle_tag = stanza:get_child("jingle", xmlns_jingle); | 235 local jingle_tag = stanza:get_child("jingle", xmlns_jingle); |
236 return self:handle_command(jingle_tag) | 236 return self:handle_command(jingle_tag) |
237 end); | 237 end); |
238 | 238 |
239 self.stream:send_iq(session_initiate, function (result) | 239 self.stream:send_iq(session_initiate, function (result) |
240 if result.type == "error" then | 240 if result.attr.type == "error" then |
241 self.state = "terminated"; | 241 self.state = "terminated"; |
242 local type, condition, text = result:get_error(); | 242 local type, condition, text = result:get_error(); |
243 return self:event("error", { type = type, condition = condition, text = text }); | 243 return self:event("error", { type = type, condition = condition, text = text }); |
244 end | 244 end |
245 end); | 245 end); |