aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_dialback.lua
diff options
context:
space:
mode:
authorMatthew Wild <mwild1@gmail.com>2008-12-25 02:30:56 +0000
committerMatthew Wild <mwild1@gmail.com>2008-12-25 02:30:56 +0000
commit2c5c16488981c16ae5655d3ae3ddb89966c1ce20 (patch)
treeabb34ece39c136992001b377c2c202e85605d93a /plugins/mod_dialback.lua
parent449e72c7363f6bb316ba516e20a79d01f8b2a558 (diff)
downloadprosody-2c5c16488981c16ae5655d3ae3ddb89966c1ce20.tar.gz
prosody-2c5c16488981c16ae5655d3ae3ddb89966c1ce20.zip
Destroy session on failed dialback instead of throwing an error
Diffstat (limited to 'plugins/mod_dialback.lua')
-rw-r--r--plugins/mod_dialback.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/mod_dialback.lua b/plugins/mod_dialback.lua
index 4e29b334..1f635dea 100644
--- a/plugins/mod_dialback.lua
+++ b/plugins/mod_dialback.lua
@@ -22,6 +22,7 @@
local send_s2s = require "core.s2smanager".send_to_host;
local s2s_make_authenticated = require "core.s2smanager".make_authenticated;
local s2s_verify_dialback = require "core.s2smanager".verify_dialback;
+local s2s_destroy_session = require "core.s2smanager".destroy_session;
local st = require "util.stanza";
@@ -120,7 +121,6 @@ module:add_handler({ "s2sout_unauthed", "s2sout" }, "result", xmlns_dialback,
if stanza.attr.type == "valid" then
s2s_make_authenticated(origin, attr.from);
else
- -- FIXME: Waiting on #33
- error("dialback failed!");
+ s2s_destroy_session(origin)
end
end);