From 70f4ecac508a63336a75d2eef98b5ce961ea1290 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Thu, 5 Oct 2023 20:04:50 +0200 Subject: [PATCH] check_next_talks(): only log room if it actually is set --- tile.lua | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tile.lua b/tile.lua index c4660d4..66efd1e 100644 --- a/tile.lua +++ b/tile.lua @@ -99,7 +99,9 @@ local function check_next_talks() local min_start = time - 25 * 60 - log("my room is '" .. current_room .. "'") + if current_room then + log("my room is '" .. current_room .. "'") + end for idx = 1, #schedule do local talk = schedule[idx]