protected function isInChannel($server, $channel, $user)
    {
        if (!isset($this->channels[$server][$channel]))
        {
            return false;
        }

        $names = array_keys($this->channels[$server][$channel], true, true);
        foreach ($names as $name) {
            if (!strcasecmp($name, $user)) {
                return true;
            }
        }

        return false;
    }