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.
This commit is contained in:
SudoRand
2025-06-01 13:56:49 -06:00
parent 860cceec59
commit 67b3c67348
+1 -1
View File
@@ -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):