1
0
mirror of https://github.com/anope/anope.git synced 2026-07-01 06:56:39 +02:00

Fix an iterator invalidation issue in cs_set and ns_set.

This commit is contained in:
Sadie Powell
2024-05-18 16:35:14 +01:00
parent 9d68b29c9e
commit 18e9e12261
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1146,7 +1146,7 @@ public:
if (c->ci && keep_modes.HasExt(c->ci))
{
Channel::ModeList ml = c->ci->last_modes;
for (const auto &[last_mode, last_value] : c->ci->last_modes)
for (const auto &[last_mode, last_value] : ml)
c->SetMode(c->ci->WhoSends(), last_mode, last_value);
}
}