mirror of
https://github.com/jlu5/PyLink.git
synced 2024-11-01 09:19:23 +01:00
unreal: fix math error
len(":SIDAAAAAA ") is 11, not 9
This commit is contained in:
parent
487a07671b
commit
4f0ca6367c
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user