summaryrefslogtreecommitdiff
path: root/modules/commands/ms_rsend.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2016-09-30 20:52:38 -0400
committerAdam <Adam@anope.org>2016-09-30 20:52:38 -0400
commit1c82697ccbf85359e86ec815bd66a74803c7ac3f (patch)
tree1c807d307d54bbecdbfec011040ade1327f76210 /modules/commands/ms_rsend.cpp
parentf3bb46a9f5bb6154f9d23dc62765758a9135f0e6 (diff)
Revert "Always use display for memo source"
This reverts commit d8a945b1a6f4e500bcb9162cf388f6984ad38328.
Diffstat (limited to 'modules/commands/ms_rsend.cpp')
-rw-r--r--modules/commands/ms_rsend.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/ms_rsend.cpp b/modules/commands/ms_rsend.cpp
index e703ba067..b7744131a 100644
--- a/modules/commands/ms_rsend.cpp
+++ b/modules/commands/ms_rsend.cpp
@@ -51,7 +51,7 @@ class CommandMSRSend : public Command
source.Reply(ACCESS_DENIED);
else
{
- MemoServService::MemoResult result = memoserv->Send(source.GetAccount()->display, nick, text);
+ MemoServService::MemoResult result = memoserv->Send(source.GetNick(), nick, text);
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)