mirror of
https://github.com/anope/anope.git
synced 2026-07-07 15:43:15 +02:00
Fix ms del all not actually deleting some memos
Fix numbering of memos in ms list
This commit is contained in:
@@ -100,12 +100,11 @@ class CommandMSDel : public Command
|
||||
else
|
||||
{
|
||||
/* Delete all memos. */
|
||||
for (unsigned i = 0, end = mi->memos->size(); i < end; ++i)
|
||||
for (unsigned i = mi->memos->size(); i > 0; --i)
|
||||
{
|
||||
FOREACH_MOD(OnMemoDel, (ci ? ci->name : source.nc->display, mi, mi->GetMemo(i)));
|
||||
delete mi->GetMemo(i);
|
||||
mi->Del(i - 1);
|
||||
}
|
||||
mi->memos->clear();
|
||||
if (!chan.empty())
|
||||
source.Reply(_("All memos for channel %s have been deleted."), chan.c_str());
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user