mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Reduced several log.infos to log.debugs.
This commit is contained in:
parent
4df10116ed
commit
c96b0f6ca9
10
src/ircdb.py
10
src/ircdb.py
@ -572,7 +572,7 @@ def checkIgnored(hostmask, recipient='', users=users, channels=channels):
|
|||||||
"""
|
"""
|
||||||
for ignore in conf.supybot.ignores():
|
for ignore in conf.supybot.ignores():
|
||||||
if ircutils.hostmaskPatternEqual(ignore, hostmask):
|
if ircutils.hostmaskPatternEqual(ignore, hostmask):
|
||||||
log.info('Ignoring %s due to conf.supybot.ignores.', hostmask)
|
log.debug('Ignoring %s due to conf.supybot.ignores.', hostmask)
|
||||||
return True
|
return True
|
||||||
try:
|
try:
|
||||||
id = users.getUserId(hostmask)
|
id = users.getUserId(hostmask)
|
||||||
@ -582,13 +582,13 @@ def checkIgnored(hostmask, recipient='', users=users, channels=channels):
|
|||||||
if ircutils.isChannel(recipient):
|
if ircutils.isChannel(recipient):
|
||||||
channel = channels.getChannel(recipient)
|
channel = channels.getChannel(recipient)
|
||||||
if channel.checkIgnored(hostmask):
|
if channel.checkIgnored(hostmask):
|
||||||
log.info('Ignoring %s due to the channel ignores.', hostmask)
|
log.debug('Ignoring %s due to the channel ignores.', hostmask)
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
if conf.supybot.defaultIgnore():
|
if conf.supybot.defaultIgnore():
|
||||||
log.info('Ignoring %s due to conf.supybot.defaultIgnore',
|
log.debug('Ignoring %s due to conf.supybot.defaultIgnore',
|
||||||
hostmask)
|
hostmask)
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
@ -597,13 +597,13 @@ def checkIgnored(hostmask, recipient='', users=users, channels=channels):
|
|||||||
# Owners shouldn't ever be ignored.
|
# Owners shouldn't ever be ignored.
|
||||||
return False
|
return False
|
||||||
elif user.ignore:
|
elif user.ignore:
|
||||||
log.info('Ignoring %s due to his IrcUser ignore flag.', hostmask)
|
log.debug('Ignoring %s due to his IrcUser ignore flag.', hostmask)
|
||||||
return True
|
return True
|
||||||
elif recipient:
|
elif recipient:
|
||||||
if ircutils.isChannel(recipient):
|
if ircutils.isChannel(recipient):
|
||||||
channel = channels.getChannel(recipient)
|
channel = channels.getChannel(recipient)
|
||||||
if channel.checkIgnored(hostmask):
|
if channel.checkIgnored(hostmask):
|
||||||
log.info('Ignoring %s due to the channel ignores.', hostmask)
|
log.debug('Ignoring %s due to the channel ignores.', hostmask)
|
||||||
return True
|
return True
|
||||||
else:
|
else:
|
||||||
return False
|
return False
|
||||||
|
Loading…
Reference in New Issue
Block a user