mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-23 02:24:12 +01:00
Fixed bug found in IrcChannel.checkCapability
This commit is contained in:
parent
061f2e0a78
commit
ae18871f7f
@ -218,6 +218,9 @@ class IrcChannel(object):
|
|||||||
def checkCapability(self, capability):
|
def checkCapability(self, capability):
|
||||||
if capability in self.capabilities:
|
if capability in self.capabilities:
|
||||||
return True
|
return True
|
||||||
|
anticapability = makeAntiCapability(capability)
|
||||||
|
if anticapability in self.capabilities:
|
||||||
|
return False
|
||||||
else:
|
else:
|
||||||
if isAntiCapability(capability):
|
if isAntiCapability(capability):
|
||||||
return not self.defaultAllow
|
return not self.defaultAllow
|
||||||
|
Loading…
Reference in New Issue
Block a user