diff options
author | Waqas Hussain <waqas20@gmail.com> | 2008-11-16 05:03:21 +0500 |
---|---|---|
committer | Waqas Hussain <waqas20@gmail.com> | 2008-11-16 05:03:21 +0500 |
commit | 164a1d1c08b4c4f6a107e5e288f62d981ce37549 (patch) | |
tree | a90cb6a393311fb9ebe6a27d4ce870ce7b7c41a7 /plugins | |
parent | df3f2d47f014e15aaaec91333762b50dc1c680f6 (diff) | |
download | prosody-164a1d1c08b4c4f6a107e5e288f62d981ce37549.tar.gz prosody-164a1d1c08b4c4f6a107e5e288f62d981ce37549.zip |
Fixed mod_tls to use session.send for sending stanzas
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/mod_tls.lua | 3 |
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(); |