From 09bec79b473fad40268f7b25b92c4979563829c4 Mon Sep 17 00:00:00 2001 From: Adam Date: Tue, 4 Mar 2014 04:14:17 -0500 Subject: Fix 2 crashes from removing the permanent channel mode from channels which do not exist --- modules/commands/cs_set.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'modules/commands/cs_set.cpp') 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()) -- cgit