/** * @param Channel $channel * @return bool */ public function isInChannel(Channel $channel) { return isset($this->channels[$channel->getName()]); }
/** * @param Channel $channel * @param String $mode */ public function takeMode(Channel $channel, string $mode) { $this->connection->sendData("MODE " . $channel->getName() . " -" . $mode . " " . $this->getNick()); }