def _checkCapability(self, capability, ignoreOwner=False):
        assert isCapability(capability), 'got %s' % capability
        if capability in self.capabilities:
            return self.capabilities.check(capability, ignoreOwner=ignoreOwner)
        else:
            if isAntiCapability(capability):
                return not self.defaultAllow
            else:
                return self.defaultAllow
Checks whether a certain capability is allowed by the channel.
dataset/ETHPy150Open ProgVal/Limnoria/src/ircdb.py/IrcChannel._checkCapability