public function userHasMode(ConnectionInterface $connection, $channel, $nick, $mode)
    {
        $connectionMask = $this->getConnectionMask($connection);
        return isset($this->modes[$connectionMask][$channel][$nick][$mode]);
    }