summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2013-09-23 13:05:50 -0400
committerAdam <Adam@anope.org>2013-09-27 19:11:02 -0400
commit5cc7fc03871018f26fe929852c03fb28296aa017 (patch)
tree6aa85f5e6db3b0a1311696d0772916457a2f186d
parent832bc35135cb10c2e95af4085d76bee1c820180e (diff)
Fix ms list crash
-rw-r--r--modules/commands/ms_list.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/commands/ms_list.cpp b/modules/commands/ms_list.cpp
index c0c04f3f7..c0c69eb4f 100644
--- a/modules/commands/ms_list.cpp
+++ b/modules/commands/ms_list.cpp
@@ -80,7 +80,7 @@ class CommandMSList : public Command
if (!number || number > mi->memos->size())
return;
- const Memo *m = mi->GetMemo(number);
+ const Memo *m = mi->GetMemo(number - 1);
ListFormatter::ListEntry entry;
entry["Number"] = (m->unread ? "* " : " ") + stringify(number + 1);