1
0
mirror of https://github.com/anope/anope.git synced 2026-06-26 14:36:38 +02:00

Fix another iterator invalidation issue.

This commit is contained in:
Sadie Powell
2024-05-22 14:30:18 +01:00
parent 7d0dacc86c
commit bce0d629fd
+2 -1
View File
@@ -658,7 +658,8 @@ class CommandCSMode final
}
else
{
for (const auto &mode : ci->c->GetModeList(cm->name))
std::vector<Anope::string> v = ci->c->GetModeList(cm->name);
for (const auto &mode : v)
{
if (Anope::Match(mode, param))
ci->c->RemoveMode(NULL, cm, mode);