mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	Merge branch 'master' into devel
This commit is contained in:
		
						commit
						b0b9138720
					
				
							
								
								
									
										3
									
								
								utils.py
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								utils.py
									
									
									
									
									
								
							@ -164,11 +164,10 @@ def parseModes(irc, target, args):
 | 
			
		||||
    # B = Mode that changes a setting and always has a parameter.
 | 
			
		||||
    # C = Mode that changes a setting and only has a parameter when set.
 | 
			
		||||
    # D = Mode that changes a setting and never has a parameter.
 | 
			
		||||
    assert args, 'No valid modes were supplied!'
 | 
			
		||||
    usermodes = not isChannel(target)
 | 
			
		||||
    prefix = ''
 | 
			
		||||
    modestring = args[0]
 | 
			
		||||
    if not modestring:
 | 
			
		||||
        return ValueError('No modes supplied in parseModes query: %r' % modes)
 | 
			
		||||
    args = args[1:]
 | 
			
		||||
    if usermodes:
 | 
			
		||||
        log.debug('(%s) Using irc.umodes for this query: %s', irc.name, irc.umodes)
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user