Factoids: /code factoids can now contain newlines

This commit is contained in:
Pragmatic Software 2019-06-30 20:48:15 -07:00
parent c399116c4e
commit 0cc1c67862
1 changed files with 1 additions and 1 deletions

View File

@ -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}) {