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(); |