diff options
author | Adam <Adam@anope.org> | 2013-09-23 13:05:50 -0400 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-09-27 19:11:02 -0400 |
commit | 5cc7fc03871018f26fe929852c03fb28296aa017 (patch) | |
tree | 6aa85f5e6db3b0a1311696d0772916457a2f186d | |
parent | 832bc35135cb10c2e95af4085d76bee1c820180e (diff) |
Fix ms list crash
-rw-r--r-- | modules/commands/ms_list.cpp | 2 |
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); |