From cf653fc08429054e5451482166622fc8db8fec1f Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 23 Sep 2013 13:20:32 -0400 Subject: Fix ms del all not actually deleting some memos Fix numbering of memos in ms list --- modules/commands/ms_list.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules/commands/ms_list.cpp') diff --git a/modules/commands/ms_list.cpp b/modules/commands/ms_list.cpp index c0c69eb4f..1671c5c08 100644 --- a/modules/commands/ms_list.cpp +++ b/modules/commands/ms_list.cpp @@ -83,7 +83,7 @@ class CommandMSList : public Command const Memo *m = mi->GetMemo(number - 1); ListFormatter::ListEntry entry; - entry["Number"] = (m->unread ? "* " : " ") + stringify(number + 1); + entry["Number"] = (m->unread ? "* " : " ") + stringify(number); entry["Sender"] = m->sender; entry["Date/Time"] = Anope::strftime(m->time, source.GetAccount()); this->list.AddEntry(entry); -- cgit