xmppclient_listener: Use : syntax for connection methods, to be compatible with new server.lua

Sat, 21 Nov 2009 17:15:59 +0000

author
Matthew Wild <mwild1@gmail.com>
date
Sat, 21 Nov 2009 17:15:59 +0000
changeset 2104
90751c0ca690
parent 2103
0737b167a997
child 2105
6425bc039430

xmppclient_listener: Use : syntax for connection methods, to be compatible with new server.lua

net/xmppclient_listener.lua file | annotate | diff | comparison | revisions
--- 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
 		

mercurial