3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-12-24 11:42:51 +01:00

relay: shortcut if the remote network is not ready

This commit is contained in:
James Lu 2018-10-10 22:39:08 -07:00
parent 12d1412cba
commit dac8410b63

View File

@ -737,6 +737,9 @@ def relay_joins(irc, channel, users, ts, targetirc=None, **kwargs):
def _relay_joins_loop(irc, remoteirc, channel, users, ts, burst=True):
queued_users = []
if not remoteirc.connected.is_set():
return # Remote network is not ready yet.
remotechan = get_remote_channel(irc, remoteirc, channel)
if remotechan is None:
# If there is no link on the current network for the channel in question,