From e193fc734f8edb98c583e47b9e702821b76a09ce Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Mon, 9 Mar 2020 12:58:30 -0700 Subject: [PATCH] Timer: use normal wildcard for `eventqueue remove` --- PBot/Timer.pm | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/PBot/Timer.pm b/PBot/Timer.pm index 9ea37b14..8900c635 100644 --- a/PBot/Timer.pm +++ b/PBot/Timer.pm @@ -112,8 +112,10 @@ sub event_queue_cmd { } if ($command eq 'remove') { - my $regex = $self->{pbot}->{interpreter}->shift_arg($stuff->{arglist}); + my ($regex) = $self->{pbot}->{interpreter}->split_args($stuff->{arglist}, 1); return "Usage: eventqueue add " if not defined $regex; + $regex =~ s/\*/.*?/g; + print "regex: [$regex]\n"; return $self->dequeue_event($regex); }