From 3665d263ac31b8924e965b8e3bff055549392453 Mon Sep 17 00:00:00 2001 From: James Lu Date: Thu, 27 Nov 2014 21:18:00 -0800 Subject: [PATCH 1/2] 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) From 5bc0d4311cc798b5096639ac26f36eab199a7f26 Mon Sep 17 00:00:00 2001 From: GLolol Date: Thu, 27 Nov 2014 22:53:08 -0800 Subject: [PATCH 2/2] Services: update my comment --- plugins/Services/plugin.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/plugins/Services/plugin.py b/plugins/Services/plugin.py index f07c4c8df..f2183cb55 100644 --- a/plugins/Services/plugin.py +++ b/plugins/Services/plugin.py @@ -270,8 +270,9 @@ class Services(callbacks.Plugin): 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. + # 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.',