From 4b084f8f07cda7eda6755f65e9c1fc96c2fa0113 Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Fri, 12 Oct 2018 02:16:24 +0200 Subject: mod_c2s: Fix fallback for missing session logger --- plugins/mod_c2s.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'plugins') diff --git a/plugins/mod_c2s.lua b/plugins/mod_c2s.lua index 3816a262..8e31a968 100644 --- a/plugins/mod_c2s.lua +++ b/plugins/mod_c2s.lua @@ -71,7 +71,7 @@ function stream_callbacks.streamopened(session, attr) end session.version = tonumber(attr.version) or 0; session.streamid = uuid_generate(); - (session.log or session)("debug", "Client sent opening to %s", session.host); + (session.log or log)("debug", "Client sent opening to %s", session.host); if not hosts[session.host] or not hosts[session.host].modules.c2s then -- We don't serve this host... -- cgit v1.2.3