mirror of https://github.com/Mikaela/Limnoria.git
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)
|
||||
|
||||
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):
|
||||
return True
|
||||
else:
|
||||
|
|
Loading…
Reference in New Issue