diff options
author | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-30 18:04:25 +0000 |
---|---|---|
committer | Adam- <Adam-@5417fbe8-f217-4b02-8779-1006273d7864> | 2010-04-30 18:04:25 +0000 |
commit | 9fc99cdfbba21849cd06517915b34489cbb4bc53 (patch) | |
tree | 78beba6f202351caeb1e20070041fde8c8410aaa /src | |
parent | 0f45f286ebddd517c29bf498704096e21e1f0489 (diff) |
Fixed ms_rsend reply when sending a memo to a nick
git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2924 5417fbe8-f217-4b02-8779-1006273d7864
Diffstat (limited to 'src')
-rw-r--r-- | src/core/ms_read.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/ms_read.c b/src/core/ms_read.c index 8497f43ab..01093d820 100644 --- a/src/core/ms_read.c +++ b/src/core/ms_read.c @@ -74,7 +74,7 @@ class CommandMSRead : public Command { if (mi->memos[i]->HasFlag(MF_UNREAD)) { - read_memo(u, i, mi, chan.c_str()); + read_memo(u, i, mi, !chan.empty() ? chan.c_str() : NULL); ++readcount; } } @@ -89,11 +89,11 @@ class CommandMSRead : public Command else if (numstr == "LAST") { for (i = 0; i < mi->memos.size() - 1; ++i); - read_memo(u, i, mi, chan.c_str()); + read_memo(u, i, mi, !chan.empty() ? chan.c_str() : NULL); } else /* number[s] */ { - if (!process_numlist(numstr.c_str(), &count, read_memo_callback, u, mi, chan.c_str())) + if (!process_numlist(numstr.c_str(), &count, read_memo_callback, u, mi, !chan.empty() ? chan.c_str() : NULL)) { if (count == 1) notice_lang(Config.s_MemoServ, u, MEMO_DOES_NOT_EXIST, num); |