3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-10-07 03:49:04 +02:00

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

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