aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-12-05 05:23:42 +0000
committerMatthew Wild <mwild1@gmail.com>2008-12-05 05:23:42 +0000
commit7c9f4818c3558c260b2f37df92371c1b33a3b121 (patch)
treeff8caf06849642257e1664d30d19aefa428179bb /net
parentffd26762181bfbbd870e91ae39ac77876f9e5382 (diff)
downloadprosody-7c9f4818c3558c260b2f37df92371c1b33a3b121.tar.gz
prosody-7c9f4818c3558c260b2f37df92371c1b33a3b121.zip
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.
Diffstat (limited to 'net')
-rw-r--r--net/xmppclient_listener.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua
index 33dcef10..22af2de4 100644
--- a/net/xmppclient_listener.lua
+++ b/net/xmppclient_listener.lua
@@ -47,6 +47,11 @@ function stream_callbacks.error(session, error, data)
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" };