diff options
author | Matthew Wild <mwild1@gmail.com> | 2009-11-21 17:15:59 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2009-11-21 17:15:59 +0000 |
commit | 2aa2de8a5bb0a37e167c4aab7cfa3a84c1444e95 (patch) | |
tree | 7b943483867f33e111efedd9ccbe13c1028c3354 | |
parent | 6c6f24c491d6c3df9899d7a9c2734d72bec6e67c (diff) | |
download | prosody-2aa2de8a5bb0a37e167c4aab7cfa3a84c1444e95.tar.gz prosody-2aa2de8a5bb0a37e167c4aab7cfa3a84c1444e95.zip |
xmppclient_listener: Use : syntax for connection methods, to be compatible with new server.lua
-rw-r--r-- | net/xmppclient_listener.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua index fd4e7097..34438f3d 100644 --- a/net/xmppclient_listener.lua +++ b/net/xmppclient_listener.lua @@ -100,7 +100,7 @@ local function session_close(session, reason) 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 @@ function xmppclient.onincoming(conn, data) 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 |