Example #1
0
 /**
  * @param User $user
  * @param String $reason
  */
 public function kick(User $user, string $reason = "Kicked.")
 {
     $this->connection->sendData("KICK " . $this->getName() . " " . $user->getNick() . " :" . $reason);
     User::removeUser($this->connection, $user->getHostmask());
     //Remove from connection
     $this->removeUser($user->getNick());
     // Remove from channel
 }