mirror of
https://github.com/anope/anope.git
synced 2026-06-28 15:16:38 +02:00
Fix randomnews to work when there are more than newscount random news
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user