mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-05-03 08:51:12 -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']
|
# ['account-notify','extended-join']
|
||||||
# targeted caps
|
# targeted caps
|
||||||
CAPS = self.registryValue('caps')
|
CAPS = self.registryValue('caps')
|
||||||
CAPS = ''.join(CAPS)
|
|
||||||
CAPS = CAPS.split(',')
|
|
||||||
for cap in CAPS:
|
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)
|
r.append(cap)
|
||||||
if len(r):
|
if len(r):
|
||||||
# apply missed caps
|
# apply missed caps
|
||||||
|
Loading…
x
Reference in New Issue
Block a user