From 0cc1c67862a92de4c250220c2002eedb7081f51e Mon Sep 17 00:00:00 2001 From: Pragmatic Software Date: Sun, 30 Jun 2019 20:48:15 -0700 Subject: [PATCH] Factoids: /code factoids can now contain newlines --- PBot/Factoids.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PBot/Factoids.pm b/PBot/Factoids.pm index 48c681c7..c3dff1fc 100644 --- a/PBot/Factoids.pm +++ b/PBot/Factoids.pm @@ -882,7 +882,7 @@ sub interpreter { $action = $self->{factoids}->hash->{$channel}->{$keyword}->{action}; } - if ($action =~ m{^/code\s+([^\s]+)\s+(.+)$}i) { + if ($action =~ m{^/code\s+([^\s]+)\s+(.+)$}msi) { my ($lang, $code) = ($1, $2); if (exists $self->{factoids}->hash->{$channel}->{$keyword}->{usage} and not length $stuff->{arguments}) {