mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	pr/inspircd: part messages are optional...
This commit is contained in:
		
							parent
							
								
									d23d34e316
								
							
						
					
					
						commit
						35346d7990
					
				@ -198,7 +198,11 @@ def handle_part(irc, source, command, args):
 | 
			
		||||
    irc.channels[channel].users.remove(source)
 | 
			
		||||
    if not irc.channels[channel].users:
 | 
			
		||||
        del irc.channels[channel]
 | 
			
		||||
    return {'channel': channel, 'reason': args[1]}
 | 
			
		||||
    try:
 | 
			
		||||
        reason = args[1]
 | 
			
		||||
    except IndexError:
 | 
			
		||||
        reason = ''
 | 
			
		||||
    return {'channel': channel, 'reason': reason}
 | 
			
		||||
 | 
			
		||||
def handle_error(irc, numeric, command, args):
 | 
			
		||||
    irc.connected = False
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user