mirror of
https://github.com/anope/anope.git
synced 2026-07-01 08:36:39 +02:00
Check that channels still exist before nulling their ci pointer in channelinfos destructor
Change the persist setting on a channel to mean only that it is being enforced ircd-side
This commit is contained in:
@@ -540,8 +540,6 @@ class CommandCSSetPersist : public Command
|
||||
if (!ci->HasExt("PERSIST"))
|
||||
{
|
||||
ci->ExtendMetadata("PERSIST");
|
||||
if (ci->c)
|
||||
ci->c->Extend("PERSIST");
|
||||
|
||||
/* Channel doesn't exist, create it */
|
||||
if (!ci->c)
|
||||
@@ -583,8 +581,6 @@ class CommandCSSetPersist : public Command
|
||||
if (ci->HasExt("PERSIST"))
|
||||
{
|
||||
ci->Shrink("PERSIST");
|
||||
if (ci->c)
|
||||
ci->c->Shrink("PERSIST");
|
||||
|
||||
/* Unset perm mode */
|
||||
if (cm)
|
||||
|
||||
Reference in New Issue
Block a user