diff options
author | Robby- <robby@chat.be> | 2013-10-04 06:21:24 +0200 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-10-05 00:33:03 -0400 |
commit | ab856683c78048f6b31d426784c0cb6c2af081f5 (patch) | |
tree | 912f592976a86811d11cd9503962e595eeb6a230 | |
parent | 97d7c21193c490f647ee059dd28d4a37a684cbb1 (diff) |
os_news: Add some logging.
-rw-r--r-- | modules/commands/os_news.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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"; } } } |