Services: don't warn about unexpected ChanServ notices if the target is a channel

This commit is contained in:
James Lu 2014-11-27 21:18:00 -08:00
parent 261a9c4d2a
commit 3665d263ac
1 changed files with 5 additions and 0 deletions

View File

@ -268,6 +268,11 @@ class Services(callbacks.Plugin):
chanTypes = irc.state.supported['CHANTYPES']
if re.match(r'^\[[%s]' % re.escape(chanTypes), s):
self.log.debug('Got entrymsg from ChanServ %s.', on)
elif ircutils.isChannel(msg.args[0]):
# Atheme uses channel-wide notices for alerting channel access
# changes if the FANTASY setting is on; we can suppress these
# 'unexpected notice' warnings since they're not really important.
pass
else:
self.log.warning('Got unexpected notice from ChanServ %s: %r.',
on, msg)