mirror of
https://github.com/ncoevoet/ChanTracker.git
synced 2025-05-03 00:41:14 -05:00
fixed a weired issue with registry.SpaceSeparatedListOfStrings on first load of plugin
This commit is contained in:
parent
b2acd22c0a
commit
286ff67141
@ -42,7 +42,6 @@ import supybot.callbacks as callbacks
|
|||||||
import supybot.ircdb as ircdb
|
import supybot.ircdb as ircdb
|
||||||
import supybot.log as log
|
import supybot.log as log
|
||||||
import supybot.schedule as schedule
|
import supybot.schedule as schedule
|
||||||
from string import Template
|
|
||||||
import socket
|
import socket
|
||||||
import re
|
import re
|
||||||
import sqlite3
|
import sqlite3
|
||||||
@ -1818,6 +1817,8 @@ 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']:
|
if cap in i.caps['LS'] and not cap in i.caps['LIST']:
|
||||||
r.append(cap)
|
r.append(cap)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user