mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 22:09:26 +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
|
||||
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);
|
||||
$pipe =~ s/\s+$//;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user