Diff

plugins/mod_saslauth.lua @ 99:ba08b8a4eeef

Abstract connections with "connection listeners" - Added connlistener for xmppclient - SASL/TLS now use a new session:reset_stream() method - main.lua on its way to being a bit neater
author Matthew Wild <mwild1@gmail.com>
date Wed, 22 Oct 2008 17:36:21 +0100
parent 52:93e468eb2ffb
child 120:ef964468f174
line wrap: on
line diff
--- a/plugins/mod_saslauth.lua	Wed Oct 22 17:27:40 2008 +0100
+++ b/plugins/mod_saslauth.lua	Wed Oct 22 17:36:21 2008 +0100
@@ -36,8 +36,7 @@
 							return;
 						end
 						session.sasl_handler = nil;
-						session.connhandler = new_connhandler("xmpp-client", session);
-						session.notopen = true;
+						session:reset_stream();
 					end,
 					function (reason)
 						-- onFail