mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-27 06:19:25 +01:00
Handle commands/pipes with newlines
This commit is contained in:
parent
7b142c68f5
commit
7a53f74e83
@ -256,7 +256,7 @@ sub interpret {
|
|||||||
|
|
||||||
# parse out a pipe unless escaped
|
# parse out a pipe unless escaped
|
||||||
if (defined $arguments && $arguments =~ m/(?<!\\)\|\s*\{\s*[^}]+\}\s*$/) {
|
if (defined $arguments && $arguments =~ m/(?<!\\)\|\s*\{\s*[^}]+\}\s*$/) {
|
||||||
$arguments =~ m/(.*?)\s*(?<!\\)\|\s*\{\s*([^}]+)\}(.*)/;
|
$arguments =~ m/(.*?)\s*(?<!\\)\|\s*\{\s*([^}]+)\}(.*)/s;
|
||||||
my ($args, $pipe, $rest) = ($1, $2, $3);
|
my ($args, $pipe, $rest) = ($1, $2, $3);
|
||||||
$pipe =~ s/\s+$//;
|
$pipe =~ s/\s+$//;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user