mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-20 02:49:49 +01:00
Functions: correct issue causing truncation at 0
This commit is contained in:
parent
92ed6dd016
commit
0bd2718e05
@ -65,7 +65,7 @@ sub do_func {
|
|||||||
return "[No such func '$func']" if not exists $self->{funcs}->{$func};
|
return "[No such func '$func']" if not exists $self->{funcs}->{$func};
|
||||||
|
|
||||||
my @params;
|
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);
|
my $result = $self->{funcs}->{$func}->{subref}->(@params);
|
||||||
$result =~ s/\x1/1/g;
|
$result =~ s/\x1/1/g;
|
||||||
|
Loading…
Reference in New Issue
Block a user