3
0
mirror of https://github.com/pragma-/pbot.git synced 2024-11-23 04:19:27 +01:00

HashObject: add get_data() function

This commit is contained in:
Pragmatic Software 2020-02-03 09:47:21 -08:00
parent 19386a7a51
commit 0881f54c6d

View File

@ -181,6 +181,11 @@ sub exists {
return exists $self->{hash}->{lc $index};
}
sub get_data {
my ($self, $index) = @_;
return $self->{hash}->{lc $index};
}
sub add {
my ($self, $index, $data, $dont_save) = @_;
my $lc_index = lc $index;