commit f3828e3a7ce80643558712ebbb19feded99fb628
parent f94e98fd6f9486cc5452fee1347e21ec0c486ea4
Author: noodle <noodle@pastanoggin.com>
Date: Fri, 3 Jul 2026 15:21:06 +0000
make the youtube regex accept youtu.be syntax too
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/matabot.pl b/matabot.pl
@@ -179,7 +179,7 @@ sub respond {
return $reply;
}
$lastmsg{$nick} = $msg;
- if (m,watch\?v=([a-zA-Z0-9_-]+),) {
+ if (m,(?:watch\?v=|youtu.be/)([a-zA-Z0-9_-]+),) {
# post youtube video title from ID
my ($id, $q, $r);