1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 15:44:46 +02:00

Fix a crashed caused by invalidation of an iterator in os_mode.

Closes #582.
This commit is contained in:
Sadie Powell
2026-06-12 10:47:58 +01:00
parent ca8fcbe119
commit 17cd10ef21
+2 -1
View File
@@ -39,7 +39,8 @@ public:
{
bool all = params.size() > 2 && params[2].equals_ci("ALL");
for (const auto &[mode, data] : c->GetModes())
auto cmodes = c->GetModes();
for (const auto &[mode, data] : cmodes)
c->RemoveMode(c->WhoSends(), mode, data.value, false);
if (!c)