Comparison

core/s2smanager.lua @ 4127:f80b7a92da67

s2smanager: Change 'Connection failed' error message text to 'Server-to-server connection failed' (thanks Paul)
author Matthew Wild <mwild1@gmail.com>
date Wed, 26 Jan 2011 13:23:39 +0000
parent 4106:e19fc274e182
child 4131:81636fa77cab
child 4187:1cad1c3495dd
comparison
equal deleted inserted replaced
4125:5cf13260edec 4127:f80b7a92da67
73 if reply and not(reply.attr.xmlns) and bouncy_stanzas[reply.name] then 73 if reply and not(reply.attr.xmlns) and bouncy_stanzas[reply.name] then
74 reply.attr.type = "error"; 74 reply.attr.type = "error";
75 reply:tag("error", {type = "cancel"}) 75 reply:tag("error", {type = "cancel"})
76 :tag("remote-server-not-found", {xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas"}):up(); 76 :tag("remote-server-not-found", {xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas"}):up();
77 if reason then 77 if reason then
78 reply:tag("text", {xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas"}):text("Connection failed: "..reason):up(); 78 reply:tag("text", {xmlns = "urn:ietf:params:xml:ns:xmpp-stanzas"})
79 :text("Server-to-server connection failed: "..reason):up();
79 end 80 end
80 core_process_stanza(dummy, reply); 81 core_process_stanza(dummy, reply);
81 end 82 end
82 sendq[i] = nil; 83 sendq[i] = nil;
83 end 84 end