- if (!channel->ServerKickUser(dest, reason, servername))
- delete channel;
-
- Channel *n = ServerInstance->FindChan(parameters[1]);
- if (!n || !n->HasUser(dest))
- {
- /* Success; send the global snomask */
- ServerInstance->PI->SendSNONotice("A", std::string(user->nick) + " SAKICKed " + dest->nick + " on " + parameters[0]);
- }
- else
- {
- /* 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;
- }