From 9b5fdea8f299fa63eb59196828b8546ab951d045 Mon Sep 17 00:00:00 2001 From: Adam Date: Fri, 22 Apr 2016 11:15:42 -0400 Subject: [PATCH] Fix randomnews to work when there are more than newscount random news --- modules/commands/os_news.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/commands/os_news.cpp b/modules/commands/os_news.cpp index 444e6b749..a35a74584 100644 --- a/modules/commands/os_news.cpp +++ b/modules/commands/os_news.cpp @@ -405,7 +405,7 @@ class OSNews : public Module int start = 0; - if (type != NEWS_RANDOM) + if (Type != NEWS_RANDOM) { start = newsList.size() - news_count; if (start < 0)