Added check for owner capability in IrcUser.checkCapability

This commit is contained in:
Jeremy Fincher 2003-04-06 12:32:12 +00:00
parent ec2908bc6c
commit 1b79a300f9

View File

@ -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: