mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-27 04:34:18 +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:
|
try:
|
||||||
id = users.getUserId(hostmask)
|
id = users.getUserId(hostmask)
|
||||||
user = users.getUser(id)
|
user = users.getUser(id)
|
||||||
if user._checkCapability('owner'):
|
if user._checkCapability('trusted'):
|
||||||
# Owners shouldn't ever be ignored.
|
# Trusted users (including owners) shouldn't ever be ignored.
|
||||||
return False
|
return False
|
||||||
elif user.ignore:
|
elif user.ignore:
|
||||||
log.debug('Ignoring %s due to their IrcUser ignore flag.', hostmask)
|
log.debug('Ignoring %s due to their IrcUser ignore flag.', hostmask)
|
||||||
|
Loading…
Reference in New Issue
Block a user