diff --git a/telegram.pl b/telegram.pl index 4f5d4dc..30e4c69 100644 --- a/telegram.pl +++ b/telegram.pl @@ -74,7 +74,11 @@ ($;$) if ($chan =~ m/^(#.+),(.+)$/) { $chan = $1; - $chanmod{$chan} = $2; + my $mod = $2; + if (($mod ne 'all') && ($mod =~ /\D/)) { + $mod = 0; + } + $chanmod{$chan} = $mod; } my $query = ($chan !~ m/^#/);