Exempt trusted users from being ignored.

Closes GH-66.
This commit is contained in:
Valentin Lorentz 2020-09-05 16:42:28 +02:00
parent 77682cc50b
commit 97016b9c55

View File

@ -1172,8 +1172,8 @@ def checkIgnored(hostmask, recipient='', users=users, channels=channels):
try:
id = users.getUserId(hostmask)
user = users.getUser(id)
if user._checkCapability('owner'):
# Owners shouldn't ever be ignored.
if user._checkCapability('trusted'):
# Trusted users (including owners) shouldn't ever be ignored.
return False
elif user.ignore:
log.debug('Ignoring %s due to their IrcUser ignore flag.', hostmask)