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:
parent
c399116c4e
commit
0cc1c67862
@ -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}) {
|
||||||
|
Loading…
Reference in New Issue
Block a user