mirror of
https://github.com/anope/anope.git
synced 2026-07-03 00:03:13 +02:00
Made Anope keep track of channels its clients are in if it splits from its uplink, then burst them back to its uplink once connection is reestablished.
Also made Anope use TS enforcement to change persistant channels creation time to the time they were registered.
This commit is contained in:
@@ -33,6 +33,8 @@ class CommandCSSetPersist : public Command
|
||||
if (!ci->HasFlag(CI_PERSIST))
|
||||
{
|
||||
ci->SetFlag(CI_PERSIST);
|
||||
if (ci->c)
|
||||
ci->c->SetFlag(CH_PERSIST);
|
||||
|
||||
/* Channel doesn't exist, create it */
|
||||
if (!ci->c)
|
||||
@@ -65,6 +67,8 @@ class CommandCSSetPersist : public Command
|
||||
if (ci->HasFlag(CI_PERSIST))
|
||||
{
|
||||
ci->UnsetFlag(CI_PERSIST);
|
||||
if (ci->c)
|
||||
ci->c->UnsetFlag(CH_PERSIST);
|
||||
|
||||
/* Unset perm mode */
|
||||
if (cm && ci->c && ci->c->HasMode(CMODE_PERM))
|
||||
|
||||
Reference in New Issue
Block a user