# HG changeset patch # User Matthew Wild # Date 1370612201 -3600 # Node ID a95890d86fe4a447ba8d63d98d819a3afaa4e834 # Parent 0ce227f6034cf302b2ba1611b3e81f3bbebddda2 plugins.adhoc, plugins.jingle: Fix checking of type attribute (thanks Mark) diff -r 0ce227f6034c -r a95890d86fe4 plugins/adhoc.lua --- a/plugins/adhoc.lua Tue May 28 15:14:50 2013 +0100 +++ b/plugins/adhoc.lua Fri Jun 07 14:36:41 2013 +0100 @@ -77,7 +77,7 @@ end function command_mt:_process_response(result) - if result.type == "error" then + if result.attr.type == "error" then self.status = "canceled"; self.callback(self, {}); return; diff -r 0ce227f6034c -r a95890d86fe4 plugins/jingle.lua --- a/plugins/jingle.lua Tue May 28 15:14:50 2013 +0100 +++ b/plugins/jingle.lua Fri Jun 07 14:36:41 2013 +0100 @@ -237,7 +237,7 @@ end); self.stream:send_iq(session_initiate, function (result) - if result.type == "error" then + if result.attr.type == "error" then self.state = "terminated"; local type, condition, text = result:get_error(); return self:event("error", { type = type, condition = condition, text = text });