Changeset

2107:90751c0ca690

xmppclient_listener: Use : syntax for connection methods, to be compatible with new server.lua
author Matthew Wild <mwild1@gmail.com>
date Sat, 21 Nov 2009 17:15:59 +0000
parents 2106:0737b167a997
children 2108:6425bc039430
files net/xmppclient_listener.lua
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/net/xmppclient_listener.lua	Sat Nov 21 17:14:59 2009 +0000
+++ b/net/xmppclient_listener.lua	Sat Nov 21 17:15:59 2009 +0000
@@ -100,7 +100,7 @@
 			end
 		end
 		session.send("</stream:stream>");
-		session.conn.close();
+		session.conn:close();
 		xmppclient.disconnect(session.conn, (reason and (reason.text or reason.condition)) or reason or "session closed");
 	end
 end
@@ -117,7 +117,7 @@
 		session.log("info", "Client connected");
 		
 		-- Client is using legacy SSL (otherwise mod_tls sets this flag)
-		if conn.ssl() then
+		if conn:ssl() then
 			session.secure = true;
 		end