mirror of
				https://github.com/pragma-/pbot.git
				synced 2025-11-04 08:37:24 +01:00 
			
		
		
		
	ChanOpCommands: alternate case of kick message if case of kick command is alternated
This commit is contained in:
		
							parent
							
								
									c07da5ccf2
								
							
						
					
					
						commit
						8610a9a7c9
					
				@ -644,6 +644,8 @@ sub cmd_kick {
 | 
			
		||||
 | 
			
		||||
    if ($context->{keyword} =~ /^[A-Z]+$/) {
 | 
			
		||||
        $reason = uc $reason;
 | 
			
		||||
    } elsif ($context->{keyword} eq 'KiCk' or $context->{keyword} eq 'kIcK') {
 | 
			
		||||
        $reason =~ s/(.)(.)/lc($1) . uc($2)/ge;
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    my @nicks = split /,/, $victim;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user