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