core/s2smanager.lua

changeset 3432
7f3e45955725
parent 3431
c499f4752cd8
child 3436
9c454c029c26
equal deleted inserted replaced
3431:c499f4752cd8 3432:7f3e45955725
70 dummy = true; 70 dummy = true;
71 }; 71 };
72 for i, data in ipairs(sendq) do 72 for i, data in ipairs(sendq) do
73 local reply = data[2]; 73 local reply = data[2];
74 local xmlns = reply.attr.xmlns; 74 local xmlns = reply.attr.xmlns;
75 if not xmlns and bouncy_stanzas[reply.name] then 75 if not(xmlns) and bouncy_stanzas[reply.name] then
76 reply.attr.type = "error"; 76 reply.attr.type = "error";
77 reply:tag("error", {type = "cancel"}) 77 reply:tag("error", {type = "cancel"})
78 :tag("remote-server-not-found", {xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas"}):up(); 78 :tag("remote-server-not-found", {xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas"}):up();
79 if reason then 79 if reason then
80 reply:tag("text", {xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas"}):text("Connection failed: "..reason):up(); 80 reply:tag("text", {xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas"}):text("Connection failed: "..reason):up();

mercurial