Software / code / prosody
Comparison
core/s2smanager.lua @ 3432:7f3e45955725
s2smanager: brackets, just to be sure :)
| author | Matthew Wild <mwild1@gmail.com> |
|---|---|
| date | Tue, 03 Aug 2010 09:40:06 +0100 |
| parent | 3431:c499f4752cd8 |
| child | 3436:9c454c029c26 |
comparison
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(); |