Multiple channel types should be supported

This commit is contained in:
Milos Petkovic 2013-06-17 23:54:59 +02:00
parent b4a63fa89e
commit 0f3f6da843

View File

@ -264,8 +264,10 @@ class Services(callbacks.Plugin):
on) on)
elif 'inviting' in s: elif 'inviting' in s:
self.log.debug('Got "Inviting to channel" from ChanServ %s.', on) self.log.debug('Got "Inviting to channel" from ChanServ %s.', on)
elif s.startswith('[#'): elif s.startswith('['):
self.log.debug('Got entrymsg from ChanServ %s.', on) chanTypes = irc.state.supported['CHANTYPES']
if re.match(r'^\[[%s]' % re.escape(chanTypes), s):
self.log.debug('Got entrymsg from ChanServ %s.', on)
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)