3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-23 18:54:05 +01:00

relay_clientbot: skip to next channel for SQUIT payloads if no nicks are affected

This commit is contained in:
James Lu 2016-08-08 21:05:55 -07:00
parent 8636280b91
commit 3878ae9e0d

View File

@ -129,6 +129,10 @@ def cb_relay_core(irc, source, command, args):
if type(nicklist) == collections.defaultdict:
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]
# Join both the nicks and colored_nicks fields into a comma separated string.