]> git.netwichtig.de Git - user/henk/code/inspircd.git/commitdiff
Merge pull request #1328 from Adam-/insp20+sakick
authorAdam <adam@sigterm.info>
Wed, 17 May 2017 22:03:38 +0000 (18:03 -0400)
committerGitHub <noreply@github.com>
Wed, 17 May 2017 22:03:38 +0000 (18:03 -0400)
m_sakick: remove unused "Unable to kick" notice

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))