diff options
author | Matthew Wild <mwild1@gmail.com> | 2008-11-18 19:44:54 +0000 |
---|---|---|
committer | Matthew Wild <mwild1@gmail.com> | 2008-11-18 19:44:54 +0000 |
commit | 99b617b8b6839a496ee26033b1b613a9f11e8f62 (patch) | |
tree | bd18151471ccc48cdd2ff90e986a75c864990484 /net | |
parent | 64e57b5001ecac19c1d7ffb2236ee3f7b71c3b1c (diff) | |
download | prosody-99b617b8b6839a496ee26033b1b613a9f11e8f62.tar.gz prosody-99b617b8b6839a496ee26033b1b613a9f11e8f62.zip |
session:disconnect() -> session:close() for consistency with other Lua APIs
Diffstat (limited to 'net')
-rw-r--r-- | net/xmppclient_listener.lua | 4 | ||||
-rw-r--r-- | net/xmppserver_listener.lua | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua index e89a591e..0f5511b4 100644 --- a/net/xmppclient_listener.lua +++ b/net/xmppclient_listener.lua @@ -38,7 +38,7 @@ end local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'}; -local function session_disconnect(session, reason) +local function session_close(session, reason) local log = session.log or log; if session.conn then if reason then @@ -90,7 +90,7 @@ function xmppclient.listener(conn, data) print("Client connected"); session.reset_stream = session_reset_stream; - session.disconnect = session_disconnect; + session.close = session_close; session_reset_stream(session); -- Initialise, ready for use diff --git a/net/xmppserver_listener.lua b/net/xmppserver_listener.lua index 4564eee1..3ba539e1 100644 --- a/net/xmppserver_listener.lua +++ b/net/xmppserver_listener.lua @@ -40,7 +40,7 @@ end local stream_xmlns_attr = {xmlns='urn:ietf:params:xml:ns:xmpp-streams'}; -local function session_disconnect(session, reason) +local function session_close(session, reason) local log = session.log or log; if session.conn then if reason then @@ -92,7 +92,7 @@ function xmppserver.listener(conn, data) print("Incoming s2s connection"); session.reset_stream = session_reset_stream; - session.disconnect = session_disconnect; + session.close = session_close; session_reset_stream(session); -- Initialise, ready for use |