mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 08:57:25 +01:00 
			
		
		
		
	stats: treat stats characters case-insensitively
This commit is contained in:
		
							parent
							
								
									7d26ce4ab5
								
							
						
					
					
						commit
						8558a4e56d
					
				@ -77,7 +77,7 @@ def handle_stats(irc, source, command, args):
 | 
			
		||||
    u - shows uptime
 | 
			
		||||
    """
 | 
			
		||||
 | 
			
		||||
    stats_type = args['stats_type'][0]  # stats_type shouldn't be more than 1 char anyways
 | 
			
		||||
    stats_type = args['stats_type'][0].lower()  # stats_type shouldn't be more than 1 char anyways
 | 
			
		||||
 | 
			
		||||
    perms = ['stats.%s' % stats_type]
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user