From 07a6c32416b7d88014b2c445fcbdeef3842b3260 Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sat, 25 Jan 2020 16:30:39 -0800 Subject: [PATCH] Users: `my` commands now ignores leading "is " in value --- PBot/Users.pm | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/PBot/Users.pm b/PBot/Users.pm index 54056ad2..d3665282 100644 --- a/PBot/Users.pm +++ b/PBot/Users.pm @@ -429,6 +429,11 @@ sub mycmd { return "Usage: my [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";