mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
Exempt trusted users from being ignored.
Closes GH-66.
This commit is contained in:
parent
77682cc50b
commit
97016b9c55
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user