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
1 changed files with 4 additions and 2 deletions

View File

@ -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)