Various: Mirror changes to checkIgnored() function.

* Bugtracker
* Encyclopedia
* PackageInfo
This commit is contained in:
Krytarik Raido
2020-10-26 01:23:04 +01:00
parent ed35f240fd
commit 95c8c5e9f7
6 changed files with 21 additions and 12 deletions

View File

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