mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-05-03 00:41:14 -05:00
prevent odd behaviour with CAP when settings are wrong
This commit is contained in:
parent
4379866dcd
commit
f0259c5b37
@ -1817,10 +1817,9 @@ class ChanTracker(callbacks.Plugin,plugins.ChannelDBHandler):
|
||||
# ['account-notify','extended-join']
|
||||
# targeted caps
|
||||
CAPS = self.registryValue('caps')
|
||||
CAPS = ''.join(CAPS)
|
||||
CAPS = CAPS.split(',')
|
||||
for cap in CAPS:
|
||||
if cap in i.caps['LS'] and not cap in i.caps['LIST']:
|
||||
# len(cap) == 1 prevents weired behaviour with CommaSeparatedListOfStrings
|
||||
if len(cap) != 1 and cap in i.caps['LS'] and not cap in i.caps['LIST']:
|
||||
r.append(cap)
|
||||
if len(r):
|
||||
# apply missed caps
|
||||
|
Loading…
x
Reference in New Issue
Block a user