mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 08:57:25 +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,
 | 
			
		||||
            # 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)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user