From 286ff67141aac40669e08fb82ae486a9de80d032 Mon Sep 17 00:00:00 2001 From: Nicolas Coevoet Date: Sat, 19 Oct 2013 08:33:30 +0200 Subject: [PATCH] fixed a weired issue with registry.SpaceSeparatedListOfStrings on first load of plugin --- plugin.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugin.py b/plugin.py index 667c360..ec544d4 100644 --- a/plugin.py +++ b/plugin.py @@ -42,7 +42,6 @@ import supybot.callbacks as callbacks import supybot.ircdb as ircdb import supybot.log as log import supybot.schedule as schedule -from string import Template import socket import re import sqlite3 @@ -1818,6 +1817,8 @@ 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']: r.append(cap)