Various: Mirror changes to checkIgnored() function.
* Bugtracker * Encyclopedia * PackageInfo
This commit is contained in:
@ -42,9 +42,12 @@ def defaultIgnored(hostmask):
|
||||
def checkIgnored(hostmask, channel):
|
||||
try:
|
||||
user = ircdb.users.getUser(hostmask)
|
||||
if user._checkCapability('owner'):
|
||||
return False
|
||||
elif user.ignore:
|
||||
try:
|
||||
if user._checkCapability('trusted'):
|
||||
return False
|
||||
except KeyError:
|
||||
pass
|
||||
if user.ignore:
|
||||
return True
|
||||
except KeyError:
|
||||
pass
|
||||
|
Reference in New Issue
Block a user