mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-23 19:22:45 +01:00
Multiple channel types should be supported
This commit is contained in:
parent
b4a63fa89e
commit
0f3f6da843
@ -264,7 +264,9 @@ 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('['):
|
||||||
|
chanTypes = irc.state.supported['CHANTYPES']
|
||||||
|
if re.match(r'^\[[%s]' % re.escape(chanTypes), s):
|
||||||
self.log.debug('Got entrymsg from ChanServ %s.', on)
|
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.',
|
||||||
|
Loading…
Reference in New Issue
Block a user