Skip to content

Commit fcea5ea

Browse files
committed
Fix bug in text matching
1 parent 0a4e737 commit fcea5ea

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Jumbochatter.pl

+2-2
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,8 @@ sub public_hook {
3939
$msg =~ m/power|str..?m/i) {
4040
blipreq_start($server, lc($target), $msg);
4141
} elsif ($target =~ m/#(?:labitat|(?:kn)?test)/i &&
42-
( ($msg =~ m/jumbotron/i && $msg =~ m/recent/i) ||
43-
$msg =~ m/^!recent|nylig/i )) {
42+
( ($msg =~ m/jumbotron/i && $msg =~ m/recent|nylig/i) ||
43+
$msg =~ m/^!(recent|nylig)/i )) {
4444
recent_start($server, lc($target), $msg);
4545
}
4646
}

0 commit comments

Comments
 (0)