mirror of
https://github.com/jlu5/SupyPlugins.git
synced 2025-04-30 07:21:12 -05:00
NoTrigger: catch a race condition caused by delayed channel joining
This commit is contained in:
parent
c8e979bb3f
commit
571901b177
@ -60,10 +60,13 @@ class NoTrigger(callbacks.Plugin):
|
|||||||
self.padchar = u('\u200B')[0]
|
self.padchar = u('\u200B')[0]
|
||||||
|
|
||||||
def isChanStripColor(self, irc, channel):
|
def isChanStripColor(self, irc, channel):
|
||||||
c = irc.state.channels[channel]
|
try:
|
||||||
for item in self.registryValue('colorAware.modes'):
|
c = irc.state.channels[channel]
|
||||||
if item in c.modes:
|
for item in self.registryValue('colorAware.modes'):
|
||||||
return True
|
if item in c.modes:
|
||||||
|
return True
|
||||||
|
except KeyError:
|
||||||
|
return True
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def outFilter(self, irc, msg):
|
def outFilter(self, irc, msg):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user