mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 12:42:34 +01:00
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:
commit
3e783a96a6
@ -268,6 +268,12 @@ class Services(callbacks.Plugin):
|
|||||||
chanTypes = irc.state.supported['CHANTYPES']
|
chanTypes = irc.state.supported['CHANTYPES']
|
||||||
if re.match(r'^\[[%s]' % re.escape(chanTypes), s):
|
if re.match(r'^\[[%s]' % re.escape(chanTypes), s):
|
||||||
self.log.debug('Got entrymsg from ChanServ %s.', on)
|
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:
|
else:
|
||||||
self.log.warning('Got unexpected notice from ChanServ %s: %r.',
|
self.log.warning('Got unexpected notice from ChanServ %s: %r.',
|
||||||
on, msg)
|
on, msg)
|
||||||
|
Loading…
Reference in New Issue
Block a user