Skip to content
Permalink
Browse files

Revert "Always use display for memo source"

This reverts commit d8a945b.
  • Loading branch information
Adam- committed Oct 1, 2016
1 parent f3bb46a commit 1c82697ccbf85359e86ec815bd66a74803c7ac3f
Showing with 3 additions and 3 deletions.
  1. +1 −1 modules/commands/ms_rsend.cpp
  2. +1 −1 modules/commands/ms_send.cpp
  3. +1 −1 modules/commands/ms_sendall.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)
@@ -45,7 +45,7 @@ class CommandMSSend : public Command
return;
}

MemoServService::MemoResult result = memoserv->Send(source.GetAccount()->display, nick, text);
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());
@@ -39,7 +39,7 @@ class CommandMSSendAll : public Command
const NickCore *nc = it->second;

if (nc != source.nc)
memoserv->Send(source.GetAccount()->display, nc->display, text);
memoserv->Send(source.GetNick(), nc->display, text);
}

source.Reply(_("A massmemo has been sent to all registered users."));

0 comments on commit 1c82697

Please sign in to comment.
You can’t perform that action at this time.