diff options
author | Adam <Adam@anope.org> | 2014-10-06 14:06:14 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2014-10-06 14:06:36 -0400 |
commit | 58233fb8bcc5c32f226e0bd37d3a8abe479e310e (patch) | |
tree | 45851bf4c83650c2c0210e105fed718816305c11 | |
parent | be928b5bbc3f77050c4042bde151b370f4dd01e9 (diff) |
Log when memos are sent
-rw-r--r-- | modules/commands/ms_send.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
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) |