3
0
mirror of https://github.com/jlu5/PyLink.git synced 2024-11-27 21:19:31 +01:00

unreal: fix math error

len(":SIDAAAAAA ") is 11, not 9
This commit is contained in:
James Lu 2017-01-12 19:54:17 -08:00
parent 487a07671b
commit 4f0ca6367c

View File

@ -234,7 +234,7 @@ class UnrealProtocol(TS6BaseProtocol):
bufsize -= len(target)
# Subtract the prefix (":SID " for servers or ":SIDAAAAAA " for servers)
bufsize -= (5 if self.irc.isInternalServer(numeric) else 9)
bufsize -= (5 if self.irc.isInternalServer(numeric) else 11)
for modestring in self.irc.wrapModes(modes, bufsize):
self._send(numeric, 'MODE %s %s %s' % (target, modestring, ts))