Fixed bug found in IrcChannel.checkCapability

This commit is contained in:
Jeremy Fincher 2003-04-04 09:12:42 +00:00
parent 061f2e0a78
commit ae18871f7f

View File

@ -218,6 +218,9 @@ class IrcChannel(object):
def checkCapability(self, capability):
if capability in self.capabilities:
return True
anticapability = makeAntiCapability(capability)
if anticapability in self.capabilities:
return False
else:
if isAntiCapability(capability):
return not self.defaultAllow