diff options
author | Adam <Adam@anope.org> | 2017-02-06 14:23:18 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2017-02-06 14:23:18 -0500 |
commit | 8b694bc392c36551e428b84454efb81cdbc8bcd3 (patch) | |
tree | ca3d1ca8aadac280c149518134de4208f91dad84 /modules/operserv/news.cpp | |
parent | 9ad06f49bbb3824139b0c0ee0a74898a18c8f735 (diff) |
Track override in CommandSource and use it in the logger
Diffstat (limited to 'modules/operserv/news.cpp')
-rw-r--r-- | modules/operserv/news.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/operserv/news.cpp b/modules/operserv/news.cpp index 3a829f0c3..65f5ca070 100644 --- a/modules/operserv/news.cpp +++ b/modules/operserv/news.cpp @@ -221,7 +221,7 @@ class NewsBase : public Command source.Reply(msgs[MSG_ADDED]); - logger.Command(LogType::ADMIN, source, _("{source} used {command} to add news item: {0}"), text); + logger.Admin(source, _("{source} used {command} to add news item: {0}"), text); } void DoDel(CommandSource &source, const std::vector<Anope::string> ¶ms, NewsType ntype, const char **msgs) @@ -254,7 +254,7 @@ class NewsBase : public Command NewsItem *item = list[num - 1]; source.Reply(msgs[MSG_DELETED], num); - logger.Command(LogType::ADMIN, source, _("{source} used {command} to delete news item {0}"), item->GetText()); + logger.Admin(source, _("{source} used {command} to delete news item {0}"), item->GetText()); item->Delete(); @@ -271,7 +271,7 @@ class NewsBase : public Command n->Delete(); source.Reply(msgs[MSG_DELETED_ALL]); - logger.Command(LogType::ADMIN, source, _("{source} used {command} to delete all news items")); + logger.Admin(source, _("{source} used {command} to delete all news items")); } } |