3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-20 02:49:49 +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]";
}
if (defined $value) {
$value =~ s/^is\s+//;
$value = undef if not length $value;
}
$key = lc $key;
my $channel = $from;
my $hostmask = "$nick!$user\@$host";