]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
m_sakick: remove unused "Unable to kick" notice
authorAdam <Adam@anope.org>
Thu, 11 May 2017 12:47:46 +0000 (08:47 -0400)
committerAdam <Adam@anope.org>
Thu, 11 May 2017 12:47:46 +0000 (08:47 -0400)
This has never worked due to the channel lookup using the user's nick

src/modules/m_sakick.cpp

index 7dfcd8904db3b7e8531059e270274a6eac547cb5..afca49e251ba17b3294670277915a5f17b8b0bd5 100644 (file)
@@ -63,14 +63,6 @@ class CommandSakick : public Command
                        if (IS_LOCAL(dest))
                        {
                                channel->KickUser(ServerInstance->FakeClient, dest, reason);
-
-                               Channel *n = ServerInstance->FindChan(parameters[1]);
-                               if (n && n->HasUser(dest))
-                               {
-                                       /* Sort-of-bug: If the command was issued remotely, this message won't be sent */
-                                       user->WriteServ("NOTICE %s :*** Unable to kick %s from %s", user->nick.c_str(), dest->nick.c_str(), parameters[0].c_str());
-                                       return CMD_FAILURE;
-                               }
                        }
 
                        if (IS_LOCAL(user))