Comparison

net/xmppclient_listener.lua @ 559:fa4a51fe6442

Remove an incorrect line which I didn't add, and fix the proper way. Corrects the sending of stanzas over unauthed s2sout's. Also fixes mod_dialback to send stanzas and not strings.
author Matthew Wild <mwild1@gmail.com>
date Fri, 05 Dec 2008 05:23:42 +0000
parent 557:c9b3ffb08fe3
child 563:099d8a102deb
comparison
equal deleted inserted replaced
558:ab3960421356 559:fa4a51fe6442
43 session:close("invalid-namespace"); 43 session:close("invalid-namespace");
44 else 44 else
45 session.log("debug", "Client XML parse error: %s", tostring(error)); 45 session.log("debug", "Client XML parse error: %s", tostring(error));
46 session:close("xml-not-well-formed"); 46 session:close("xml-not-well-formed");
47 end 47 end
48 end
49
50 local function handleerr(err) print("Traceback:", err, debug.traceback()); end
51 function stream_callbacks.handlestanza(a, b)
52 xpcall(function () core_process_stanza(a, b) end, handleerr);
48 end 53 end
49 54
50 local sessions = {}; 55 local sessions = {};
51 local xmppclient = { default_port = 5222, default_mode = "*a" }; 56 local xmppclient = { default_port = 5222, default_mode = "*a" };
52 57