1
0
mirror of https://github.com/anope/anope.git synced 2026-06-12 17:24:49 +02:00

Fix updating the access description in cs_flags.

This commit is contained in:
Sadie Powell
2026-05-16 11:23:25 +01:00
parent 8930cc2a92
commit caf904c938
+2 -2
View File
@@ -311,8 +311,8 @@ class CommandCSFlags final
return; return;
auto *access = anope_dynamic_static_cast<FlagsChanAccess *>(provider->Create()); auto *access = anope_dynamic_static_cast<FlagsChanAccess *>(provider->Create());
access->SetMask(mask, ci); access->SetMask(mask, ci);
access->creator = source.GetNick(); access->creator = source.GetNick();
access->description = current ? current->description : description; access->description = current && description.empty() ? current->description : description;
access->last_seen = current ? current->last_seen : 0; access->last_seen = current ? current->last_seen : 0;
access->created = Anope::CurTime; access->created = Anope::CurTime;
access->flags = current_flags; access->flags = current_flags;