mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-25 04:02:46 +01:00
Added check for owner capability in IrcUser.checkCapability
This commit is contained in:
parent
ec2908bc6c
commit
1b79a300f9
@ -102,7 +102,12 @@ class IrcUser(object):
|
|||||||
self.capabilities.remove(capability)
|
self.capabilities.remove(capability)
|
||||||
|
|
||||||
def checkCapability(self, capability):
|
def checkCapability(self, capability):
|
||||||
if self.ignore:
|
if 'owner' in self.capabilities:
|
||||||
|
if isAntiCapability(capability):
|
||||||
|
return False
|
||||||
|
else:
|
||||||
|
return True
|
||||||
|
elif self.ignore:
|
||||||
if isAntiCapability(capability):
|
if isAntiCapability(capability):
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user