summaryrefslogtreecommitdiff
path: root/modules/commands/ms_rsend.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2012-09-15 10:11:31 -0400
committerAdam <Adam@anope.org>2012-09-30 20:30:27 -0400
commit9ba719688161499f01c168b1aed84a563bcb5953 (patch)
treeb2ffbe3ceebf2a32820780fb76d30967af8ea50c /modules/commands/ms_rsend.cpp
parent1e71303ffaf263adb0cc659505caa223f7f27b85 (diff)
Make CommandSource use references, sometimes we hold them for awhile
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 6dc79bb44..9b6545f7f 100644
--- a/modules/commands/ms_rsend.cpp
+++ b/modules/commands/ms_rsend.cpp
@@ -34,7 +34,7 @@ class CommandMSRSend : public Command
const NickAlias *na = NULL;
/* prevent user from rsend to themselves */
- if ((na = findnick(nick)) && na->nc == source.nc)
+ if ((na = findnick(nick)) && na->nc == source.GetAccount())
{
source.Reply(_("You can not request a receipt when sending a memo to yourself."));
return;