aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/mod_tls.lua
diff options
context:
space:
mode:
authorWaqas Hussain <waqas20@gmail.com>2008-11-16 05:03:21 +0500
committerWaqas Hussain <waqas20@gmail.com>2008-11-16 05:03:21 +0500
commit164a1d1c08b4c4f6a107e5e288f62d981ce37549 (patch)
treea90cb6a393311fb9ebe6a27d4ce870ce7b7c41a7 /plugins/mod_tls.lua
parentdf3f2d47f014e15aaaec91333762b50dc1c680f6 (diff)
downloadprosody-164a1d1c08b4c4f6a107e5e288f62d981ce37549.tar.gz
prosody-164a1d1c08b4c4f6a107e5e288f62d981ce37549.zip
Fixed mod_tls to use session.send for sending stanzas
Diffstat (limited to 'plugins/mod_tls.lua')
-rw-r--r--plugins/mod_tls.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/mod_tls.lua b/plugins/mod_tls.lua
index 21a35312..b5ca5015 100644
--- a/plugins/mod_tls.lua
+++ b/plugins/mod_tls.lua
@@ -1,6 +1,5 @@
local st = require "util.stanza";
-local send = require "core.sessionmanager".send_to_session;
--local sessions = sessions;
@@ -13,7 +12,7 @@ local xmlns_starttls ='urn:ietf:params:xml:ns:xmpp-tls';
add_handler("c2s_unauthed", "starttls", xmlns_starttls,
function (session, stanza)
if session.conn.starttls then
- send(session, st.stanza("proceed", { xmlns = xmlns_starttls }));
+ session.send(st.stanza("proceed", { xmlns = xmlns_starttls }));
-- FIXME: I'm commenting the below, not sure why it was necessary
-- sessions[session.conn] = nil;
session:reset_stream();