From 17768803c9d98386e720f8521b5bd87504d9fa68 Mon Sep 17 00:00:00 2001 From: Matthew Wild Date: Sun, 16 Nov 2008 00:27:40 +0000 Subject: Fix logging in some cases for client disconnects --- net/xmppclient_listener.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/xmppclient_listener.lua b/net/xmppclient_listener.lua index b475237f..b5028db0 100644 --- a/net/xmppclient_listener.lua +++ b/net/xmppclient_listener.lua @@ -82,7 +82,7 @@ function xmppclient.disconnect(conn, err) pres:tag("status"):text("Disconnected: "..err); session.stanza_dispatch(pres); end - session.log("info", "Client disconnected: %s", err); + (session.log or log)("info", "Client disconnected: %s", err); sm_destroy_session(session); sessions[conn] = nil; session = nil; -- cgit v1.2.3