mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 11:12:47 +01:00
Multiple channel types should be supported
This commit is contained in:
parent
b4a63fa89e
commit
0f3f6da843
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user