1
0
mirror of https://github.com/anope/anope.git synced 2026-07-06 18:43:13 +02:00

Fixed /ms list reply header to include the users nick

git-svn-id: http://anope.svn.sourceforge.net/svnroot/anope/trunk@2824 5417fbe8-f217-4b02-8779-1006273d7864
This commit is contained in:
Adam-
2010-03-20 04:59:50 +00:00
parent 6ebc85b900
commit 28ccf79adf
+2 -2
View File
@@ -66,7 +66,7 @@ class CommandMSList : public Command
{
int sent_header = 0;
if (!param.empty() && isdigit(param[0]))
process_numlist(param.c_str(), NULL, list_memo_callback, u, mi, &sent_header, chan.c_str());
process_numlist(param.c_str(), NULL, list_memo_callback, u, mi, &sent_header, chan.empty() ? NULL : chan.c_str());
else
{
if (!param.empty())
@@ -89,7 +89,7 @@ class CommandMSList : public Command
{
if (!param.empty() && !(mi->memos[i]->HasFlag(MF_UNREAD)))
continue;
list_memo(u, i, mi, &sent_header, !param.empty(), chan.c_str());
list_memo(u, i, mi, &sent_header, !param.empty(), chan.empty() ? NULL : chan.c_str());
}
}
}