summaryrefslogtreecommitdiff
path: root/modules/commands/cs_set.cpp
diff options
context:
space:
mode:
authorAdam <Adam@anope.org>2014-03-04 04:14:17 -0500
committerAdam <Adam@anope.org>2014-03-04 04:15:32 -0500
commit09bec79b473fad40268f7b25b92c4979563829c4 (patch)
treee5e70c2fd3c6bfbcdb3fbd571c3c0191741b3caa /modules/commands/cs_set.cpp
parent55a5affcb8251c6ef677d78ea848dc8d26b90471 (diff)
Fix 2 crashes from removing the permanent channel mode from channels which do not exist
Diffstat (limited to 'modules/commands/cs_set.cpp')
-rw-r--r--modules/commands/cs_set.cpp6
1 files changed, 0 insertions, 6 deletions
diff --git a/modules/commands/cs_set.cpp b/modules/commands/cs_set.cpp
index bb8232808..1109c888e 100644
--- a/modules/commands/cs_set.cpp
+++ b/modules/commands/cs_set.cpp
@@ -1289,12 +1289,6 @@ class CSSet : public Module
{
if (c->ci)
persist.Unset(c->ci);
-
- if (c->CheckDelete())
- {
- delete c;
- return EVENT_STOP;
- }
}
if (c->ci && mode->type != MODE_STATUS && !c->syncing && Me->IsSynced())