From f0259c5b3746a6469915f0537dcedeb045b30dc5 Mon Sep 17 00:00:00 2001 From: Nicolas Coevoet Date: Sat, 19 Oct 2013 08:50:41 +0200 Subject: [PATCH] prevent odd behaviour with CAP when settings are wrong --- plugin.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/plugin.py b/plugin.py index 248b1c6..148aead 100644 --- a/plugin.py +++ b/plugin.py @@ -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