aboutsummaryrefslogtreecommitdiff
path: root/idalius.pl
diff options
context:
space:
mode:
Diffstat (limited to 'idalius.pl')
-rwxr-xr-xidalius.pl9
1 files changed, 8 insertions, 1 deletions
diff --git a/idalius.pl b/idalius.pl
index 608c1d0..46e02c4 100755
--- a/idalius.pl
+++ b/idalius.pl
@@ -180,7 +180,14 @@ sub strike_add {
sub should_ignore {
my ($who) = @_;
- return grep {$_ eq $who} @{$config->{_}->{ignore}};
+ for my $mask (@{$config->{_}->{ignore}}) {
+ my $expr = $mask;
+ $expr =~ s/\*/.*/g;
+ if ($who =~ /^$expr$/) {
+ return 1;
+ }
+ }
+ return;
}
sub reconnect {