From ef4e1ecbab9636716568c7c8e039aeaa4708353a Mon Sep 17 00:00:00 2001 From: James Lu Date: Fri, 6 Jan 2017 18:29:47 -0800 Subject: [PATCH] unreal: count the server prefix in SJOIN line wrap (#253) --- protocols/unreal.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocols/unreal.py b/protocols/unreal.py index 01b4c52..e60ab29 100644 --- a/protocols/unreal.py +++ b/protocols/unreal.py @@ -184,7 +184,7 @@ class UnrealProtocol(TS6BaseProtocol): # Store the part of the SJOIN that we may reuse due to line wrapping (i.e. the sjoin # "prefix") - sjoin_prefix = "SJOIN {ts} {channel}".format(ts=ts, channel=channel) + sjoin_prefix = ":{sid} SJOIN {ts} {channel}".format(sid=server, ts=ts, channel=channel) # Modes are optional; add them if they exist if modes: @@ -194,7 +194,7 @@ class UnrealProtocol(TS6BaseProtocol): # Wrap arguments to the max supported S2S line length to prevent cutoff # (https://github.com/GLolol/PyLink/issues/378) for line in utils.wrapArguments(sjoin_prefix, itemlist, S2S_BUFSIZE): - self._send(server, line) + self.irc.send(line) self.irc.channels[channel].users.update(uids)