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:
parent
2f7afb6e39
commit
07a6c32416
@ -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";
|
||||||
|
Loading…
Reference in New Issue
Block a user