Diff

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
line wrap: on
line diff
--- a/net/xmppclient_listener.lua	Fri Dec 05 04:44:19 2008 +0000
+++ b/net/xmppclient_listener.lua	Fri Dec 05 05:23:42 2008 +0000
@@ -47,6 +47,11 @@
 	end
 end
 
+local function handleerr(err) print("Traceback:", err, debug.traceback()); end
+function stream_callbacks.handlestanza(a, b)
+	xpcall(function () core_process_stanza(a, b) end, handleerr);
+end
+
 local sessions = {};
 local xmppclient = { default_port = 5222, default_mode = "*a" };