1
0
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:
Adam
2013-03-20 11:03:02 -05:00
parent 731912f01e
commit 6a0e4418f4
4 changed files with 11 additions and 23 deletions
-4
View File
@@ -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)