mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +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)
|
||||
|
||||
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
Block a user