mirror of
https://github.com/anope/anope.git
synced 2026-07-03 18:23:14 +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:
@@ -1008,7 +1008,7 @@ public:
|
||||
if (cm->type == MODE_REGULAR)
|
||||
{
|
||||
if (!c->HasMode(cm->name) && ml->set)
|
||||
c->SetMode(NULL, cm, "", false);
|
||||
c->SetMode(NULL, cm, {}, false);
|
||||
else if (c->HasMode(cm->name) && !ml->set)
|
||||
c->RemoveMode(NULL, cm, "", false);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user