1
0
mirror of https://github.com/anope/anope.git synced 2026-07-09 20:03:13 +02:00

Store the setter and ts for all modes and try to restore them.

This is mostly for preserving channel list mode info.
This commit is contained in:
Sadie Powell
2025-05-03 17:07:07 +01:00
parent c955941413
commit 010beb52b1
26 changed files with 341 additions and 218 deletions
+2 -2
View File
@@ -36,8 +36,8 @@ public:
{
bool all = params.size() > 2 && params[2].equals_ci("ALL");
for (const auto &[mode, value] : c->GetModes())
c->RemoveMode(c->WhoSends(), mode, value, false);
for (const auto &[mode, data] : c->GetModes())
c->RemoveMode(c->WhoSends(), mode, data.value, false);
if (!c)
{