summaryrefslogtreecommitdiff
path: root/modules/commands/ms_read.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2011-08-29 16:13:37 -0400
committerAdam <Adam@anope.org>2011-08-29 16:13:37 -0400
commitb24ea29bf578e115a3bab71cd33ca2e4672fbfba (patch)
tree601a72d343e12303c3de41feb82cc38002fac935 /modules/commands/ms_read.cpp
parent5cf3ddb7b196173fbac848322bf0ed8e4dfd524b (diff)
Fixed the /ms del message sent to users when they use /ms read
Diffstat (limited to 'modules/commands/ms_read.cpp')
-rw-r--r--modules/commands/ms_read.cpp7
1 files 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();
}
}