From 67b3c673489c01306ff87f24ce9fa81ca6085d3c Mon Sep 17 00:00:00 2001 From: SudoRand Date: Sun, 1 Jun 2025 13:56:49 -0600 Subject: [PATCH] Fix bug that always enabled news_random_line_only This looks like a simple typo that accidentally used read_news_enabled for the news_random_line_only parameter. As a result, the news_random_line_only setting was always treated as True (since this line it only executed if read_news_enabled was True). Now it obeys the configuration value. --- modules/filemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/filemon.py b/modules/filemon.py index 75372d4..6bd9abf 100644 --- a/modules/filemon.py +++ b/modules/filemon.py @@ -31,7 +31,7 @@ def read_file(file_monitor_file_path, random_line_only=False): def read_news(): # read the news file on demand - return read_file(news_file_path, read_news_enabled) + return read_file(news_file_path, news_random_line_only) def write_news(content, append=False):