3
0
mirror of https://github.com/pragma-/pbot.git synced 2025-01-23 10:34:52 +01: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}; $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); my ($lang, $code) = ($1, $2);
if (exists $self->{factoids}->hash->{$channel}->{$keyword}->{usage} and not length $stuff->{arguments}) { if (exists $self->{factoids}->hash->{$channel}->{$keyword}->{usage} and not length $stuff->{arguments}) {