mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-11 12:32:37 +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…
Reference in New Issue
Block a user