From 352a3dff6979c681b00e3872d82122059a6d4dbf Mon Sep 17 00:00:00 2001 From: FichteFoll Date: Tue, 14 Apr 2020 16:50:32 +0200 Subject: [PATCH] Misc lua code cleanups --- syncplay/resources/syncplayintf.lua | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/syncplay/resources/syncplayintf.lua b/syncplay/resources/syncplayintf.lua index a00a1be..3aa699c 100644 --- a/syncplay/resources/syncplayintf.lua +++ b/syncplay/resources/syncplayintf.lua @@ -204,7 +204,6 @@ function process_alert_osd() local messageString = wordwrapify_string(alert_osd) local startRow = 0 if messageString ~= '' and messageString ~= nil then - local toDisplay rowsCreated = rowsCreated + 1 messageString = messageColour..messageString if stringToAdd ~= "" then @@ -222,10 +221,8 @@ function process_notification_osd(startRow) local startRow = startRow local stringToAdd = "" if notification_osd ~= "" and mp.get_time() - last_notification_osd_time < opts['alertTimeout'] and last_notification_osd_time ~= nil then - local messageColour - messageColour = "{\\1c&H"..NOTIFICATION_TEXT_COLOUR.."}" - local messageString - messageString = wordwrapify_string(notification_osd) + local messageColour = "{\\1c&H"..NOTIFICATION_TEXT_COLOUR.."}" + local messageString = wordwrapify_string(notification_osd) messageString = messageColour..messageString messageString = format_chatroom(messageString) stringToAdd = messageString