Changeset

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
parents 315:4df26c981728
children 317:dcb5bce69a0f 318:cc20ea4a8697
files plugins/mod_tls.lua
diffstat 1 files changed, 1 insertions(+), 2 deletions(-) [+]
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();