From 3665d263ac31b8924e965b8e3bff055549392453 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 27 Nov 2014 21:18:00 -0800 Subject: [PATCH] Services: don't warn about unexpected ChanServ notices if the target is a channel --- plugins/Services/plugin.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/plugins/Services/plugin.py b/plugins/Services/plugin.py index 053134265..f07c4c8df 100644 --- a/plugins/Services/plugin.py +++ b/plugins/Services/plugin.py @@ -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)