mirror of
https://github.com/jlu5/PyLink.git
synced 2025-10-15 07:57:21 +02:00
unreal: count the server prefix in SJOIN line wrap (#253)
This commit is contained in:
parent
4183a580d2
commit
ef4e1ecbab
@ -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
|
# Store the part of the SJOIN that we may reuse due to line wrapping (i.e. the sjoin
|
||||||
# "prefix")
|
# "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
|
# Modes are optional; add them if they exist
|
||||||
if modes:
|
if modes:
|
||||||
@ -194,7 +194,7 @@ class UnrealProtocol(TS6BaseProtocol):
|
|||||||
# Wrap arguments to the max supported S2S line length to prevent cutoff
|
# Wrap arguments to the max supported S2S line length to prevent cutoff
|
||||||
# (https://github.com/GLolol/PyLink/issues/378)
|
# (https://github.com/GLolol/PyLink/issues/378)
|
||||||
for line in utils.wrapArguments(sjoin_prefix, itemlist, S2S_BUFSIZE):
|
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)
|
self.irc.channels[channel].users.update(uids)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user