3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-03 09:58:42 +02:00

Timer: use normal wildcard for eventqueue remove

This commit is contained in:
Pragmatic Software 2020-03-09 12:58:30 -07:00
parent 3f97b26d1a
commit e193fc734f

View File

@ -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 <regex>" if not defined $regex;
$regex =~ s/\*/.*?/g;
print "regex: [$regex]\n";
return $self->dequeue_event($regex);
}