mirror of
				https://github.com/jlu5/PyLink.git
				synced 2025-11-04 00:47:21 +01:00 
			
		
		
		
	commands, opercmds: remove explicit to_lower usage
Closes #500 - I'm going to skip relay and automode because DataStore doesn't do case normalization yet.
This commit is contained in:
		
							parent
							
								
									f439267129
								
							
						
					
					
						commit
						29458c8e47
					
				@ -83,7 +83,7 @@ def showchan(irc, source, args):
 | 
			
		||||
    Shows information about <channel>."""
 | 
			
		||||
    permissions.check_permissions(irc, source, ['commands.showchan'])
 | 
			
		||||
    try:
 | 
			
		||||
        channel = irc.to_lower(args[0])
 | 
			
		||||
        channel = args[0]
 | 
			
		||||
    except IndexError:
 | 
			
		||||
        irc.error("Not enough arguments. Needs 1: channel.")
 | 
			
		||||
        return
 | 
			
		||||
 | 
			
		||||
@ -341,7 +341,7 @@ def kick(irc, source, args):
 | 
			
		||||
    Kicks <user> from the specified channel."""
 | 
			
		||||
    permissions.check_permissions(irc, source, ['opercmds.kick'])
 | 
			
		||||
    try:
 | 
			
		||||
        channel = irc.to_lower(args[0])
 | 
			
		||||
        channel = args[0]
 | 
			
		||||
        target = args[1]
 | 
			
		||||
        reason = ' '.join(args[2:])
 | 
			
		||||
    except IndexError:
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user