mirror of
https://github.com/pragma-/pbot.git
synced 2024-11-26 13:59:47 +01:00
HashObject: add get_data() function
This commit is contained in:
parent
19386a7a51
commit
0881f54c6d
@ -181,6 +181,11 @@ sub exists {
|
|||||||
return exists $self->{hash}->{lc $index};
|
return exists $self->{hash}->{lc $index};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub get_data {
|
||||||
|
my ($self, $index) = @_;
|
||||||
|
return $self->{hash}->{lc $index};
|
||||||
|
}
|
||||||
|
|
||||||
sub add {
|
sub add {
|
||||||
my ($self, $index, $data, $dont_save) = @_;
|
my ($self, $index, $data, $dont_save) = @_;
|
||||||
my $lc_index = lc $index;
|
my $lc_index = lc $index;
|
||||||
|
Loading…
Reference in New Issue
Block a user