]> git.netwichtig.de Git - user/henk/code/inspircd.git/blobdiff - src/commands/cmd_kick.cpp
Cull channels, warn when Extensible objects are not culled as they must be
[user/henk/code/inspircd.git] / src / commands / cmd_kick.cpp
index d160b030b2eb99f52b126a207cbbf5a14af04611..65b22070c2dfdb9b3f72fcf201e37bf98ea0a7e3 100644 (file)
@@ -66,9 +66,7 @@ CmdResult CommandKick::Handle (const std::vector<std::string>& parameters, User
                reason.assign(user->nick, 0, ServerInstance->Config->Limits.MaxKick);
        }
 
-       if (!c->KickUser(user, u, reason.c_str()))
-               /* Nobody left here, delete the Channel */
-               delete c;
+       c->KickUser(user, u, reason.c_str());
 
        return CMD_SUCCESS;
 }