mirror of
https://github.com/pragma-/pbot.git
synced 2024-12-23 11:12:42 +01:00
Timer: use normal wildcard for eventqueue remove
This commit is contained in:
parent
3f97b26d1a
commit
e193fc734f
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user