]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/modules/m_channames.cpp
Cull channels, warn when Extensible objects are not culled as they must be
[user/henk/code/inspircd.git] / src / modules / m_channames.cpp
index ba03f9af5480013e4942f49df79f4798a89848c5..c137d0e716a9bde936348e46b096f325a3987dae 100644 (file)
@@ -81,8 +81,8 @@ class ModuleChannelNames : public Module
                        }
                        const UserMembList* users = c->GetUsers();
                        for(UserMembCIter j = users->begin(); j != users->end(); ++j)
-                               if (IS_LOCAL(j->first) && !c->ServerKickUser(j->first, "Channel name no longer valid", NULL))
-                                       delete c;
+                               if (IS_LOCAL(j->first))
+                                       c->ServerKickUser(j->first, "Channel name no longer valid", NULL);
                }
                badchan = false;
        }