mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-05 09:32:34 +01:00
Commands/ChanOp: silly kick-message shenanigans
This commit is contained in:
parent
f172563fdc
commit
4162c06fe4
@ -475,8 +475,12 @@ sub cmd_kick($self, $context) {
|
|||||||
|
|
||||||
if ($context->{keyword} =~ /^[A-Z]+$/) {
|
if ($context->{keyword} =~ /^[A-Z]+$/) {
|
||||||
$reason = uc $reason;
|
$reason = uc $reason;
|
||||||
} elsif ($context->{keyword} eq 'KiCk' or $context->{keyword} eq 'kIcK') {
|
} elsif ($context->{keyword} eq 'KiCk') {
|
||||||
|
$reason =~ s/(.)(.)/uc($1) . lc($2)/ge;
|
||||||
|
} elsif ($context->{keyword} eq 'kIcK') {
|
||||||
$reason =~ s/(.)(.)/lc($1) . uc($2)/ge;
|
$reason =~ s/(.)(.)/lc($1) . uc($2)/ge;
|
||||||
|
} elsif ($context->{keyword} eq 'KicK') {
|
||||||
|
$reason =~ s/(\w)(?:(\S*)(\w))?/uc($1) . lc($2) . uc($3)/ge;
|
||||||
}
|
}
|
||||||
|
|
||||||
my @nicks = split /,/, $victim;
|
my @nicks = split /,/, $victim;
|
||||||
|
@ -25,7 +25,7 @@ use PBot::Imports;
|
|||||||
# These are set by the /misc/update_version script
|
# These are set by the /misc/update_version script
|
||||||
use constant {
|
use constant {
|
||||||
BUILD_NAME => "PBot",
|
BUILD_NAME => "PBot",
|
||||||
BUILD_REVISION => 4863,
|
BUILD_REVISION => 4864,
|
||||||
BUILD_DATE => "2024-11-30",
|
BUILD_DATE => "2024-11-30",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user