When removing a list mode update the parameter to the actual entry.

This commit is contained in:
Sadie Powell 2025-01-25 12:14:57 +00:00
parent 7c31e3697b
commit aa383e7efd

View File

@ -210,6 +210,7 @@ bool ListModeBase::OnModeChange(User* source, User*, Channel* channel, Modes::Ch
if (!CompareEntry(it->mask, change.param))
continue; // Doesn't match the proposed removal.
change.param = it->mask;
stdalgo::vector::swaperase(cd->list, it);
return true;
}