mirror of
https://github.com/jlu5/PyLink.git
synced 2025-02-25 18:00:39 +01:00
ts6: 10 modes per line, not 9
I must've made it shorter just to be safe, but that isn't necessary.
This commit is contained in:
parent
982e7c43f2
commit
e8ecc1c775
@ -179,11 +179,11 @@ class TS6Protocol(TS6BaseProtocol):
|
|||||||
|
|
||||||
# On output, at most ten cmode parameters should be sent; if there are more,
|
# On output, at most ten cmode parameters should be sent; if there are more,
|
||||||
# multiple TMODE messages should be sent.
|
# multiple TMODE messages should be sent.
|
||||||
while modes[:9]:
|
while modes[:10]:
|
||||||
# Seriously, though. If you send more than 10 mode parameters in
|
# Seriously, though. If you send more than 10 mode parameters in
|
||||||
# a line, charybdis will silently REJECT the entire command!
|
# a line, charybdis will silently REJECT the entire command!
|
||||||
joinedmodes = self.irc.joinModes(modes = [m for m in modes[:9] if m[0] not in self.irc.cmodes['*A']])
|
joinedmodes = self.irc.joinModes(modes = [m for m in modes[:10] if m[0] not in self.irc.cmodes['*A']])
|
||||||
modes = modes[9:]
|
modes = modes[10:]
|
||||||
self._send(numeric, 'TMODE %s %s %s' % (ts, target, joinedmodes))
|
self._send(numeric, 'TMODE %s %s %s' % (ts, target, joinedmodes))
|
||||||
else:
|
else:
|
||||||
joinedmodes = self.irc.joinModes(modes)
|
joinedmodes = self.irc.joinModes(modes)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user