3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 13:59:47 +01:00

Users: my commands now ignores leading "is " in value

This commit is contained in:
Pragmatic Software 2020-01-25 16:30:39 -08:00
parent 2f7afb6e39
commit 07a6c32416

View File

@ -429,6 +429,11 @@ sub mycmd {
return "Usage: my <key> [value]"; return "Usage: my <key> [value]";
} }
if (defined $value) {
$value =~ s/^is\s+//;
$value = undef if not length $value;
}
$key = lc $key; $key = lc $key;
my $channel = $from; my $channel = $from;
my $hostmask = "$nick!$user\@$host"; my $hostmask = "$nick!$user\@$host";