diff options
author | Adam <Adam@anope.org> | 2013-03-20 11:03:02 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2013-03-20 11:39:16 -0500 |
commit | 6a0e4418f4c41dfb687de80773b4e4d45dc2e12b (patch) | |
tree | f713464980b3c28b17d473e32eb7df612468d94b /modules/commands/cs_set.cpp | |
parent | 731912f01eb14d811575c492dc64b60084bd412c (diff) |
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
Diffstat (limited to 'modules/commands/cs_set.cpp')
-rw-r--r-- | modules/commands/cs_set.cpp | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp index 730f31deb..97948b0a4 100644 --- a/modules/commands/cs_set.cpp +++ b/modules/commands/cs_set.cpp @@ -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) |