3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-26 22:09:26 +01:00

Functions: correct issue causing truncation at 0

This commit is contained in:
Pragmatic Software 2020-05-01 11:26:27 -07:00
parent 92ed6dd016
commit 0bd2718e05

View File

@ -65,7 +65,7 @@ sub do_func {
return "[No such func '$func']" if not exists $self->{funcs}->{$func};
my @params;
while (my $param = $self->{pbot}->{interpreter}->shift_arg($stuff->{arglist})) { push @params, $param; }
while (defined(my $param = $self->{pbot}->{interpreter}->shift_arg($stuff->{arglist}))) { push @params, $param; }
my $result = $self->{funcs}->{$func}->{subref}->(@params);
$result =~ s/\x1/1/g;