From b24ea29bf578e115a3bab71cd33ca2e4672fbfba Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 29 Aug 2011 16:13:37 -0400 Subject: [PATCH] Fixed the /ms del message sent to users when they use /ms read --- modules/commands/ms_read.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/commands/ms_read.cpp b/modules/commands/ms_read.cpp index 9e826fc88..1221c5cc2 100644 --- a/modules/commands/ms_read.cpp +++ b/modules/commands/ms_read.cpp @@ -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(); } }