plugins/jingle.lua

changeset 341
a95890d86fe4
parent 250
a5ac643a7fd6
child 380
0891b4e27766
--- 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 });

mercurial