Software /
code /
prosody
Diff
plugins/mod_tls.lua @ 316:13e2bd256a20
Fixed mod_tls to use session.send for sending stanzas
author | Waqas Hussain <waqas20@gmail.com> |
---|---|
date | Sun, 16 Nov 2008 05:03:21 +0500 |
parent | 303:89e8f53b870e |
child | 357:17bcecb06420 |
line wrap: on
line diff
--- a/plugins/mod_tls.lua Sun Nov 16 05:02:15 2008 +0500 +++ b/plugins/mod_tls.lua Sun Nov 16 05:03:21 2008 +0500 @@ -1,6 +1,5 @@ local st = require "util.stanza"; -local send = require "core.sessionmanager".send_to_session; --local sessions = sessions; @@ -13,7 +12,7 @@ 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();