diff options
author | Adam <Adam@anope.org> | 2016-04-22 11:15:42 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2016-04-22 11:15:42 -0400 |
commit | 9b5fdea8f299fa63eb59196828b8546ab951d045 (patch) | |
tree | 3e9f9f4dae481e5af5487813faa562a110171a86 | |
parent | 8b6e17fe7e706ce87e700a4962d450d9cdeac85f (diff) |
Fix randomnews to work when there are more than newscount random news
-rw-r--r-- | modules/commands/os_news.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |