summaryrefslogtreecommitdiff
path: root/modules/commands/os_news.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-04-22 11:15:42 -0400
committerAdam <Adam@anope.org>2016-04-22 11:15:42 -0400
commit9b5fdea8f299fa63eb59196828b8546ab951d045 (patch)
tree3e9f9f4dae481e5af5487813faa562a110171a86 /modules/commands/os_news.cpp
parent8b6e17fe7e706ce87e700a4962d450d9cdeac85f (diff)
Fix randomnews to work when there are more than newscount random news
Diffstat (limited to 'modules/commands/os_news.cpp')
-rw-r--r--modules/commands/os_news.cpp2
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)