Merge pull request #921 from GLolol/services/suppress-channelwide-notice-warnings

Services: don't warn about unexpected ChanServ notices if the target is a channel
This commit is contained in:
Valentin Lorentz 2014-11-28 09:07:24 +01:00
commit 3e783a96a6
1 changed files with 6 additions and 0 deletions

View File

@ -268,6 +268,12 @@ 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 or VERBOSE 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)