diff options
author | Sadie Powell <sadie@witchery.services> | 2021-05-31 20:57:48 +0100 |
---|---|---|
committer | Sadie Powell <sadie@witchery.services> | 2021-05-31 20:57:48 +0100 |
commit | df4313f5bbacbfcb6592b6d90fe5362192287d59 (patch) | |
tree | f16f74b745083d6f8575d86c8d19565869c4d9c4 /modules/commands/os_news.cpp | |
parent | 53cd3f47b5c5afa503e96380e9e22d7d35108714 (diff) | |
parent | 3728a0bda1cf010520c4fae821fc9c98b2adb083 (diff) |
Merge branch '2.0' into 2.1.
Diffstat (limited to 'modules/commands/os_news.cpp')
-rw-r--r-- | modules/commands/os_news.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/commands/os_news.cpp b/modules/commands/os_news.cpp index d83e44025..f199cdad5 100644 --- a/modules/commands/os_news.cpp +++ b/modules/commands/os_news.cpp @@ -111,12 +111,12 @@ class MyNewsService : public NewsService return new MyNewsItem(); } - void AddNewsItem(NewsItem *n) + void AddNewsItem(NewsItem *n) anope_override { this->newsItems[n->type].push_back(n); } - void DelNewsItem(NewsItem *n) + void DelNewsItem(NewsItem *n) anope_override { std::vector<NewsItem *> &list = this->GetNewsList(n->type); std::vector<NewsItem *>::iterator it = std::find(list.begin(), list.end(), n); @@ -125,7 +125,7 @@ class MyNewsService : public NewsService delete n; } - std::vector<NewsItem *> &GetNewsList(NewsType t) + std::vector<NewsItem *> &GetNewsList(NewsType t) anope_override { return this->newsItems[t]; } |