3
0
mirror of https://github.com/jlu5/PyLink.git synced 2025-01-11 20:52:42 +01:00

unreal: count the server prefix in SJOIN line wrap (#253)

This commit is contained in:
James Lu 2017-01-06 18:29:47 -08:00
parent 4183a580d2
commit ef4e1ecbab

View File

@ -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)