From 164a1d1c08b4c4f6a107e5e288f62d981ce37549 Mon Sep 17 00:00:00 2001 From: Waqas Hussain Date: Sun, 16 Nov 2008 05:03:21 +0500 Subject: Fixed mod_tls to use session.send for sending stanzas --- plugins/mod_tls.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'plugins') 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(); -- cgit v1.2.3