mirror of
https://github.com/pragma-/pbot.git
synced 2025-02-16 21:40:46 +01:00
Plugins/Plang: update NIL to NULL
This commit is contained in:
parent
e4159f0ecd
commit
ea6ae182f1
@ -130,7 +130,7 @@ sub plang_builtin_print {
|
|||||||
my ($self, $plang, $context, $name, $arguments) = @_;
|
my ($self, $plang, $context, $name, $arguments) = @_;
|
||||||
my ($expr, $end) = ($plang->output_value($arguments->[0]), $arguments->[1]->[1]);
|
my ($expr, $end) = ($plang->output_value($arguments->[0]), $arguments->[1]->[1]);
|
||||||
$self->{output} .= "$expr$end";
|
$self->{output} .= "$expr$end";
|
||||||
return ['NIL', undef];
|
return ['NULL', undef];
|
||||||
}
|
}
|
||||||
|
|
||||||
# our custom PBot built-in functions for Plang
|
# our custom PBot built-in functions for Plang
|
||||||
@ -177,7 +177,7 @@ sub plang_builtin_userget {
|
|||||||
my $user = $self->{pbot}->{users}->{users}->get_data($username->[1]);
|
my $user = $self->{pbot}->{users}->{users}->get_data($username->[1]);
|
||||||
|
|
||||||
if (not defined $user) {
|
if (not defined $user) {
|
||||||
return ['NIL', undef];
|
return ['NULL', undef];
|
||||||
}
|
}
|
||||||
|
|
||||||
my $hash = { %$user };
|
my $hash = { %$user };
|
||||||
|
Loading…
x
Reference in New Issue
Block a user