1
0
mirror of https://github.com/anope/anope.git synced 2026-06-25 03:06:37 +02:00

Fixed the /ms del message sent to users when they use /ms read

This commit is contained in:
Adam
2011-08-29 16:13:37 -04:00
parent 5cf3ddb7b1
commit b24ea29bf5
+4 -3
View File
@@ -52,8 +52,9 @@ class MemoListCallback : public NumberList
{
CommandSource &source;
MemoInfo *mi;
ChannelInfo *ci;
public:
MemoListCallback(CommandSource &_source, MemoInfo *_mi, const Anope::string &numlist) : NumberList(numlist, false), source(_source), mi(_mi)
MemoListCallback(CommandSource &_source, MemoInfo *_mi, ChannelInfo *_ci, const Anope::string &numlist) : NumberList(numlist, false), source(_source), mi(_mi), ci(_ci)
{
}
@@ -62,7 +63,7 @@ class MemoListCallback : public NumberList
if (!Number || Number > mi->memos.size())
return;
MemoListCallback::DoRead(source, mi, NULL, Number - 1);
MemoListCallback::DoRead(source, mi, ci, Number - 1);
}
static void DoRead(CommandSource &source, MemoInfo *mi, ChannelInfo *ci, unsigned index)
@@ -155,7 +156,7 @@ class CommandMSRead : public Command
}
else /* number[s] */
{
MemoListCallback list(source, mi, numstr);
MemoListCallback list(source, mi, ci, numstr);
list.Process();
}
}