From 0f3f6da84344f5e382e07ab1362f4a1f94eec9d7 Mon Sep 17 00:00:00 2001 From: Milos Petkovic Date: Mon, 17 Jun 2013 23:54:59 +0200 Subject: [PATCH] Multiple channel types should be supported --- plugins/Services/plugin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/plugins/Services/plugin.py b/plugins/Services/plugin.py index 4f1d462e9..053134265 100644 --- a/plugins/Services/plugin.py +++ b/plugins/Services/plugin.py @@ -264,8 +264,10 @@ class Services(callbacks.Plugin): on) elif 'inviting' in s: self.log.debug('Got "Inviting to channel" from ChanServ %s.', on) - elif s.startswith('[#'): - self.log.debug('Got entrymsg from ChanServ %s.', on) + elif s.startswith('['): + chanTypes = irc.state.supported['CHANTYPES'] + if re.match(r'^\[[%s]' % re.escape(chanTypes), s): + self.log.debug('Got entrymsg from ChanServ %s.', on) else: self.log.warning('Got unexpected notice from ChanServ %s: %r.', on, msg)