# HG changeset patch # User Matthew Wild # Date 1258823759 0 # Node ID 90751c0ca690009fb7f29044688f7e4c0fd42f66 # Parent 0737b167a997c86c5a05123041dbf365b82d9349 xmppclient_listener: Use : syntax for connection methods, to be compatible with new server.lua diff -r 0737b167a997 -r 90751c0ca690 net/xmppclient_listener.lua --- 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(""); - 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