From 58233fb8bcc5c32f226e0bd37d3a8abe479e310e Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 6 Oct 2014 14:06:14 -0400 Subject: Log when memos are sent --- modules/commands/ms_send.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'modules/commands/ms_send.cpp') diff --git a/modules/commands/ms_send.cpp b/modules/commands/ms_send.cpp index f8f857607..5f3754cd0 100644 --- a/modules/commands/ms_send.cpp +++ b/modules/commands/ms_send.cpp @@ -47,7 +47,10 @@ class CommandMSSend : public Command MemoServService::MemoResult result = memoserv->Send(source.GetNick(), nick, text); if (result == MemoServService::MEMO_SUCCESS) + { source.Reply(_("Memo sent to \002%s\002."), nick.c_str()); + Log(LOG_COMMAND, source, this) << "to send a memo to " << nick; + } else if (result == MemoServService::MEMO_INVALID_TARGET) source.Reply(_("\002%s\002 is not a registered unforbidden nick or channel."), nick.c_str()); else if (result == MemoServService::MEMO_TOO_FAST) -- cgit