def _checkManageCapabilities(self, irc, msg, channel):
        c = irc.state.channels[channel]
        if msg.nick in c.ops or msg.nick in c.halfops or 't' not in c.modes:
            return True
        capabilities = self.registryValue('requireManageCapability', channel)
        if capabilities:
            for capability in re.split(r'\s*;\s*', capabilities):
                if capability.startswith('channel,'):
                    capability = ircdb.makeChannelCapability(
                        channel, capability[8:])
                if capability and ircdb.checkCapability(msg.prefix, capability):
                    return
            capabilities = self.registryValue('requireManageCapability',
                    channel)
            irc.errorNoCapability(capabilities, Raise=True)
        else:
            return
Returns the path associated to WD, if WD is unknown it returns None.
dataset/ETHPy150Open ProgVal/Limnoria/plugins/Topic/plugin.py/Topic._checkManageCapabilities--crossover with--dataset/ETHPy150Open seb-m/pyinotify/python2/pyinotify.py/WatchManager.get_path