mirror of
https://github.com/jlu5/PyLink.git
synced 2025-01-24 03:04:05 +01:00
relay_clientbot: skip to next channel for SQUIT payloads if no nicks are affected
This commit is contained in:
parent
8636280b91
commit
3878ae9e0d
@ -129,6 +129,10 @@ def cb_relay_core(irc, source, command, args):
|
|||||||
if type(nicklist) == collections.defaultdict:
|
if type(nicklist) == collections.defaultdict:
|
||||||
nicklist = nicklist.get(channel, [])
|
nicklist = nicklist.get(channel, [])
|
||||||
|
|
||||||
|
# Ignore if no nicks are affected on the channel.
|
||||||
|
if not nicklist:
|
||||||
|
continue
|
||||||
|
|
||||||
colored_nicks = [color_text(nick) for nick in nicklist]
|
colored_nicks = [color_text(nick) for nick in nicklist]
|
||||||
|
|
||||||
# Join both the nicks and colored_nicks fields into a comma separated string.
|
# Join both the nicks and colored_nicks fields into a comma separated string.
|
||||||
|
Loading…
Reference in New Issue
Block a user