From ab856683c78048f6b31d426784c0cb6c2af081f5 Mon Sep 17 00:00:00 2001 From: Robby- Date: Fri, 4 Oct 2013 06:21:24 +0200 Subject: os_news: Add some logging. --- modules/commands/os_news.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/modules/commands/os_news.cpp b/modules/commands/os_news.cpp index 5fe8ccc65..2fec7d7ad 100644 --- a/modules/commands/os_news.cpp +++ b/modules/commands/os_news.cpp @@ -160,6 +160,7 @@ class NewsBase : public Command this->ns->AddNewsItem(news); source.Reply(msgs[MSG_ADDED]); + Log(LOG_ADMIN, source, this) << "to add a news item"; } return; @@ -189,6 +190,7 @@ class NewsBase : public Command { this->ns->DelNewsItem(list[num - 1]); source.Reply(msgs[MSG_DELETED], num); + Log(LOG_ADMIN, source, this) << "to delete a news item"; return; } } @@ -201,6 +203,7 @@ class NewsBase : public Command for (unsigned i = list.size(); i > 0; --i) this->ns->DelNewsItem(list[i - 1]); source.Reply(msgs[MSG_DELETED_ALL]); + Log(LOG_ADMIN, source, this) << "to delete all news items"; } } } -- cgit