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

Plugins/Plang: update NIL to NULL

This commit is contained in:
Pragmatic Software 2020-08-08 12:36:38 -07:00
parent e4159f0ecd
commit ea6ae182f1

View File

@ -130,7 +130,7 @@ sub plang_builtin_print {
my ($self, $plang, $context, $name, $arguments) = @_;
my ($expr, $end) = ($plang->output_value($arguments->[0]), $arguments->[1]->[1]);
$self->{output} .= "$expr$end";
return ['NIL', undef];
return ['NULL', undef];
}
# 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]);
if (not defined $user) {
return ['NIL', undef];
return ['NULL', undef];
}
my $hash = { %$user };