From e8ecc1c775386957659471af33a349bd32e49d97 Mon Sep 17 00:00:00 2001 From: James Lu Date: Mon, 27 Jun 2016 23:40:58 -0700 Subject: [PATCH] ts6: 10 modes per line, not 9 I must've made it shorter just to be safe, but that isn't necessary. --- protocols/ts6.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/protocols/ts6.py b/protocols/ts6.py index cae1690..b91dabf 100644 --- a/protocols/ts6.py +++ b/protocols/ts6.py @@ -179,11 +179,11 @@ class TS6Protocol(TS6BaseProtocol): # On output, at most ten cmode parameters should be sent; if there are more, # multiple TMODE messages should be sent. - while modes[:9]: + while modes[:10]: # Seriously, though. If you send more than 10 mode parameters in # 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']]) - modes = modes[9:] + joinedmodes = self.irc.joinModes(modes = [m for m in modes[:10] if m[0] not in self.irc.cmodes['*A']]) + modes = modes[10:] self._send(numeric, 'TMODE %s %s %s' % (ts, target, joinedmodes)) else: joinedmodes = self.irc.joinModes(modes)