mirror of
https://github.com/pragma-/pbot.git
synced 2025-01-23 02:24:25 +01:00
Factoids: /code factoids can now contain newlines
This commit is contained in:
parent
c399116c4e
commit
0cc1c67862
@ -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}) {
|
||||
|
Loading…
Reference in New Issue
Block a user